for ST7567 LCD

Dependents:   BSM02

Fork of st7565LCD by Masato YAMANISHI

Revision:
1:29ff79184a05
Parent:
0:f2eba6cbd093
Child:
2:0e21d2f2155a
--- 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[];