Masato YAMANISHI / st7565LCD

Fork of st7565LCD by jun imamura

Files at this revision

API Documentation at this revision

Comitter:
masato
Date:
Sat Jan 09 12:21:39 2016 +0000
Parent:
0:f2eba6cbd093
Commit message:
adapted for ST7567 (aitendo CH12864F-SPI)

Changed in this revision

st7565LCD.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/st7565LCD.cpp	Tue Mar 18 09:26:16 2014 +0000
+++ b/st7565LCD.cpp	Sat Jan 09 12:21:39 2016 +0000
@@ -35,12 +35,19 @@
 #include "st7565LCD.h"
 #include "st7565LCDfont.h"
 
+#define ST7567 //
+
+#ifdef ST7567
+#define ST7565_STARTBYTES 0 
+const uint8_t pagemap[] = { 7, 6, 5, 4, 3, 2, 1, 0 };
+#else
 #define ST7565_STARTBYTES 1
+const uint8_t pagemap[] = { 3, 2, 1, 0, 7, 6, 5, 4 };
+#endif
 
 uint8_t is_reversed = 0;
 
 // a handy reference to where the pages are on the screen
-const uint8_t pagemap[] = { 3, 2, 1, 0, 7, 6, 5, 4 };
 
 // a 5x7 font table
 extern const uint8_t font[];