Demo program for driving the memory LCD on the Zero Gecko Starter Kit.

Dependencies:   MemoryLCD mbed

This demo program shows how to drive the memory LCD on the Zero Gecko Starter Kit, by using asynchronous transfers.

Information

All examples in this repo are considered EXPERIMENTAL QUALITY, meaning this code has been created as one-off proof-of-concept and is suitable as a demonstration for experimental purposes only. This code will not be regularly maintained by Silicon Labs and there is no guarantee that these projects will work across all environments, SDK versions and hardware.

Revision:
6:f334f0adb99b
Parent:
0:ecfcdf193e3d
--- a/main.cpp	Fri Apr 17 15:27:20 2015 -0400
+++ b/main.cpp	Fri Apr 17 19:36:10 2015 +0000
@@ -3,13 +3,13 @@
 /******************** Define I/O *****************************/
 DigitalOut myled(LED1);
  
-#define SCK     PD2
-#define MOSI    PD0
+#define SCK     PC15
+#define MOSI    PD7
  
-DigitalOut CS(PD3);
-DigitalOut EXTCOM(PC4);
-DigitalOut EXTMODE(PD4);
-DigitalOut DISP(PD5);
+DigitalOut CS(PE11);
+DigitalOut EXTCOM(PE10);
+DigitalOut DISP(PA10);
+DigitalOut DISP_SEL(PA8);
  
 SPI displaySPI(MOSI, NC, SCK);
 silabs::LS013B7DH03 display(&displaySPI, &CS, &EXTCOM);
@@ -42,7 +42,7 @@
 /*************************** MAIN *******************************/
 int main() {
     // Enable the LCD
-    EXTMODE = 1;
+    DISP_SEL = 1;
     DISP = 1;
  
     // Start generating the 1Hz call for keeping time