TextLCD demo for Nucleo F303K8

Dependencies:   TextLCD mbed

Revision:
0:671361c6a2ce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 23 07:24:02 2016 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+TextLCD g_lcd(D7, D8, D9, D10, D11, D12);  // RS, E, DB4, DB5, DB6, DB7
+
+int main() {
+    g_lcd.cls();
+    g_lcd.locate(0, 0);
+    g_lcd.printf( "Hello!");
+
+    int iCounter = 0;
+    while(1) {
+        g_lcd.locate(0, 1);
+        g_lcd.printf( "%d", iCounter );
+        iCounter++;
+        wait(1.0);
+    }
+}
+