4180 LabTeam - Spring '18 / Mbed 2 deprecated Lab2_Part3

Dependencies:   4DGL-uLCD-SE mbed

Revision:
0:abe7b0c3f382
Child:
1:9f093ed9a93b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Feb 08 03:41:35 2018 +0000
@@ -0,0 +1,21 @@
+// uLCD-144-G2 basic text demo program for uLCD-4GL LCD driver library
+//
+#include "mbed.h"
+#include "uLCD_4DGL.h"
+ 
+uLCD_4DGL uLCD(p9,p10,p11); // serial tx, serial rx, reset pin;
+ 
+int main()
+{
+    // basic printf demo = 16 by 18 characters on screen
+    uLCD.printf("\nHello uLCD World\n"); //Default Green on black text
+    uLCD.printf("\n  Starting Demo...");
+    uLCD.text_width(4); //4X size text
+    uLCD.text_height(4);
+    uLCD.color(RED);
+    for (int i=10; i>=0; --i) {
+        uLCD.locate(1,2);
+        uLCD.printf("%2D",i);
+        wait(.5);
+    }
+}
\ No newline at end of file