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
- 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!
Diff: POKITTO_CORE/PokittoDisplay.cpp
- Revision:
- 29:9467921dec10
- Parent:
- 27:24970a0c35a8
--- a/POKITTO_CORE/PokittoDisplay.cpp Fri Jan 05 02:19:51 2018 +0000 +++ b/POKITTO_CORE/PokittoDisplay.cpp Mon Jan 29 12:29:45 2018 +0000 @@ -494,7 +494,7 @@ c = c & (PALETTE_SIZE-1) ; //don't let palette go out of bounds if (bpp==1 && c) c=0xFF; // set all pixels else if (bpp==2) { - c = bgcolor & 0x3; + c = c & 0x3; c = c | (c << 2); c = c | (c << 4); } else {