El-POM1001 / Mbed 2 deprecated Fancy-Terminal

Dependencies:   Terminal mbed

Fork of Terminal_HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
madmonkeyman82
Date:
Thu Oct 15 16:36:35 2015 +0000
Parent:
1:dae8b7bc926d
Child:
3:35b0711f1832
Commit message:
Cool Fancy Terminal

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Nov 23 16:05:15 2010 +0000
+++ b/main.cpp	Thu Oct 15 16:36:35 2015 +0000
@@ -6,15 +6,18 @@
 Terminal term(USBTX, USBRX); // tx, rx
 
 int main() {
-    term.printf("Hello World!\nHow are you?");
-
+    
+    
+    while(1)
+    {
+    term.cls();
+    term.locate(20,10);
+    term.printf("How are you?");
     wait(2);
-
-    term.locate(3,1);
+    term.locate(20,11);
     term.foreground(0xFF0000);
+     term.foreground(0xFF0000);
     term.printf("I'm Great!");
-
-    wait(3);
-
-    term.cls();
+    wait(2);
+    }
 }
--- a/mbed.bld	Tue Nov 23 16:05:15 2010 +0000
+++ b/mbed.bld	Thu Oct 15 16:36:35 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file