Rewrite the NokiaLCD lib by using the SWSPI lib in order to fit in with the 9 bits SPI mode of KL46Z.
Dependencies: NokiaLCD_SWSPI MAG3110 mbed-src MMA8451Q TSI
Diff: main.cpp
- Revision:
- 0:34b921aa05a6
- Child:
- 2:de077e491bd5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Feb 18 04:21:41 2014 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "NokiaLCD_SWSPI.h" + +NokiaLCD_SWSPI lcd6100(D11, D12, D13, D9, D8, NokiaLCD_SWSPI::PCF8833); +DigitalOut led(LED1); + +int main() { + + while(1) { + led = 1; + wait(0.2); + led = 0; + wait(0.2); + printf("this is a test. \n\r"); + lcd6100.printf("this is a test \n\r"); + + } +}