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
Revision 0:34b921aa05a6, committed 2014-02-18
- Comitter:
- jppang
- Date:
- Tue Feb 18 04:21:41 2014 +0000
- Child:
- 1:c8c9092fe4f1
- Commit message:
- Try out the Nokia LCD shield with KL46Z
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NokiaLCD_SWSPI.lib Tue Feb 18 04:21:41 2014 +0000 @@ -0,0 +1,1 @@ +NokiaLCD_SWSPI#34125ddb025e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SWSPI.lib Tue Feb 18 04:21:41 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/davervw/code/SWSPI/#6a500a08c7fd
--- /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"); + + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-src.lib Tue Feb 18 04:21:41 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-src/#085cde657901