Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of st7565LCD by
Revision 1:29ff79184a05, committed 2016-01-09
- 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[];
    