Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UARTSnoop BaseJpegDecode_example
Fork of Terminal by
Diff: main.cpp
- Revision:
- 0:2bf27af3c759
diff -r 000000000000 -r 2bf27af3c759 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Dec 31 09:50:48 2009 +0000
@@ -0,0 +1,21 @@
+// simple test for a ANSI/VT100 Terminal, sford
+
+#include "mbed.h"
+
+#include "Terminal.h"
+
+Terminal term(USBTX, USBRX); // tx, rx
+
+int main() {
+ term.printf("Hello World!\nHow are you?");
+
+ wait(2);
+
+ term.locate(3,1);
+ term.foreground(0xFF0000);
+ term.printf("I'm Great!");
+
+ wait(3);
+
+ term.cls();
+}
