CH12864F-SPI_Test

Dependencies:   mbed st7565LCD

Revision:
0:919786300d6c
Child:
1:8512a97a56bc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 27 07:56:48 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "st7565LCD.h"
+
+DigitalOut led1(LED1);
+
+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