CH12864F-SPI_Test

Dependencies:   mbed st7565LCD

Revision:
1:8512a97a56bc
Parent:
0:919786300d6c
--- a/main.cpp	Fri May 27 07:56:48 2016 +0000
+++ b/main.cpp	Fri Aug 05 15:33:53 2016 +0000
@@ -1,18 +1,16 @@
 #include "mbed.h"
 #include "st7565LCD.h"
 
-DigitalOut led1(LED1);
+//ST7565(PinName mosi, PinName sclk, PinName cs, PinName rst, PinName a0);
+ST7565 gLCD(SPI_MOSI, SPI_SCK, SPI_CS, D9, D8);
 
 int main()
 {
-    //ST7565(PinName mosi, PinName sclk, PinName cs, PinName rst, PinName a0);
-    ST7565 gLCD(D4, D3, D2, D7, D6);
     gLCD.begin(0x10);
     
     while (true) {
-        led1 = !led1;
         gLCD.drawstring(0, 0, "Hello World.");
         gLCD.display();
         wait(0.1);
     }
-}
\ No newline at end of file
+}