PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Wed Dec 25 23:59:52 2019 +0000
Parent:
70:770c9727f951
Commit message:
Changed Mode2 C++ refresh code (graphical errors)

Changed in this revision

POKITTO_HW/HWLCD.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/POKITTO_HW/HWLCD.cpp	Wed Dec 25 22:14:28 2019 +0000
+++ b/POKITTO_HW/HWLCD.cpp	Wed Dec 25 23:59:52 2019 +0000
@@ -49,6 +49,8 @@
 #define AB_JUMP 1024 // jump one 1-bit Arduboy screen forward to get next color bit
 #define GB_JUMP 504 // jump one 1-bit Gamebuino screen forward to get next color bit
 
+//#undef __ARMCC_VERSION
+
 using namespace Pokitto;
 
 uint16_t prevdata=0; // if data does not change, do not adjust LCD bus lines
@@ -1211,9 +1213,11 @@
       uint8_t t = *d++;
       uint32_t color;
       color = uint32_t(paletteptr[t>>4])<<3;
-      scanline[s]=*LCD=color;TGL_WR_OP(s++);TGL_WR;
+      scanline[s++]= color;
+      *LCD=color;TGL_WR;TGL_WR;
       color = uint32_t(paletteptr[t&0xF])<<3;
-      scanline[s]=*LCD=color;TGL_WR_OP(s++);TGL_WR;
+      scanline[s++]= color;
+      *LCD=color;TGL_WR;TGL_WR;
     }
 
     s=0;