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

main.cpp

Committer:
jppang
Date:
2014-02-18
Revision:
0:34b921aa05a6
Child:
2:de077e491bd5

File content as of revision 0:34b921aa05a6:

#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");
        
    }
}