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_HW/HWLCD.h
- Revision:
- 65:deed4aa606fb
- Parent:
- 52:c04087025cab
--- a/POKITTO_HW/HWLCD.h Tue Oct 23 16:21:01 2018 +0000 +++ b/POKITTO_HW/HWLCD.h Sat Mar 23 19:22:35 2019 +0000 @@ -81,6 +81,8 @@ extern void lcdRefreshMode3(uint8_t *, uint16_t*); extern void lcdRefreshModeGBC(uint8_t *, uint16_t*); extern void lcdRefreshMode13(uint8_t *, uint16_t*, uint8_t); +extern void lcdRefreshMixMode(const uint8_t *, const uint16_t*, const uint8_t*); +extern void lcdRefreshMode64(uint8_t *, uint16_t*); extern void lcdRefreshMode15(uint16_t*, uint8_t*); @@ -147,14 +149,14 @@ #define CLR_MASK_P2 LPC_GPIO_PORT->MASK[2] = 0; // all on #define TGL_WR_OP(OP) \ - LPC_GPIO_PORT->SET[LCD_WR_PORT] = 1 << LCD_WR_PIN; \ + LPC_GPIO_PORT->CLR[LCD_WR_PORT] = 1 << LCD_WR_PIN; \ OP; \ - LPC_GPIO_PORT->CLR[LCD_WR_PORT] = 1 << LCD_WR_PIN; + LPC_GPIO_PORT->SET[LCD_WR_PORT] = 1 << LCD_WR_PIN; #define TGL_WR \ - LPC_GPIO_PORT->SET[LCD_WR_PORT] = 1 << LCD_WR_PIN; \ - __asm("nop"); \ - LPC_GPIO_PORT->CLR[LCD_WR_PORT] = 1 << LCD_WR_PIN; + LPC_GPIO_PORT->CLR[LCD_WR_PORT] = 1 << LCD_WR_PIN; \ + __asm("nop"); \ + LPC_GPIO_PORT->SET[LCD_WR_PORT] = 1 << LCD_WR_PIN; /**************************************************************************/ /** SETUP GPIO & DATA **/