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
Diff: st7565LCD.cpp
- Revision:
- 1:29ff79184a05
- Parent:
- 0:f2eba6cbd093
- Child:
- 2:0e21d2f2155a
diff -r f2eba6cbd093 -r 29ff79184a05 st7565LCD.cpp
--- 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[];
