CH12864F-SPI2_Test

Dependencies:   mbed st7565LCD

Revision:
0:cbc508b7ebff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 05 15:35:42 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "st7565LCD.h"
+
+//ST7565(PinName mosi, PinName sclk, PinName cs, PinName rst, PinName a0);
+ST7565 gLCD(PB_15, PB_13, PB_1, PB_2, PB_12);
+
+int main()
+{
+    gLCD.begin(0x10);
+    
+    while (true) {
+        gLCD.drawstring(0, 0, "Hello World.");
+        gLCD.display();
+        wait(0.1);
+    }
+}