Jonne Valola / PokittoLib Featured

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!
Revision:
64:1d52d8287c39
Parent:
56:71e4c6b1efb4
diff -r 8b6a110feeea -r 1d52d8287c39 POKITTO_CORE/PokittoDisplay.h
--- a/POKITTO_CORE/PokittoDisplay.h	Sun Oct 07 10:19:52 2018 +0000
+++ b/POKITTO_CORE/PokittoDisplay.h	Sat Mar 23 19:19:23 2019 +0000
@@ -141,12 +141,14 @@
 private:
     static uint8_t* canvas;
     static uint8_t bpp;
-    static uint8_t m_colordepth;
 public:
+    static uint8_t m_colordepth; // public to be used elsewhere
+    static uint8_t subMode; // for mixed mode switching
     static uint8_t palOffset;
     static uint8_t width;
     static uint8_t height;
     static uint8_t screenbuffer[];
+    static uint8_t scanType[]; // for mixed screen mode
 
     // PROPERTIES
     static void setColorDepth(uint8_t);
@@ -312,6 +314,8 @@
     static void drawRleBitmap(int16_t x, int16_t y, const uint8_t* bitmap);
     /** Draw animated bitmap frame */
     static void drawBitmap(int16_t x, int16_t y, const uint8_t* bitmap, uint8_t frame);
+    /** Draw bitmap data flipped on x-axis*/
+    static void drawBitmapDataXFlipped(int16_t x, int16_t y, int16_t w, int16_t h, const uint8_t* bitmap);
     /** Draw bitmap flipped on x-axis*/
     static void drawBitmapXFlipped(int16_t x, int16_t y, const uint8_t* bitmap);
     /** Draw bitmap with options */
@@ -391,7 +395,7 @@
     static int16_t cursorX,cursorY;
     static uint8_t fontSize;
     static int8_t adjustCharStep, adjustLineStep;
-	static bool fixedWidthFont;
+	static bool fixedWidthFont, flipFontVertical;
 
     static void inc_txtline();
     static void printNumber(unsigned long, uint8_t);