Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Revision 71:531419862202, committed 2019-12-25
- 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 |
diff -r 770c9727f951 -r 531419862202 POKITTO_HW/HWLCD.cpp
--- 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;