Demo program for driving the memory LCD on the Zero Gecko Starter Kit.
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.
Diff: main.cpp
- Revision:
- 2:66aa675cb1a7
- Parent:
- 0:ecfcdf193e3d
- Child:
- 3:95c3a389bc88
--- a/main.cpp Fri Apr 17 15:27:20 2015 -0400 +++ b/main.cpp Fri Apr 17 15:42:54 2015 -0400 @@ -3,17 +3,17 @@ /******************** 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); - + /******************** Define Timers *****************************/ LowPowerTicker timeKeeping;