No tags
00001 // simple test for a ANSI/VT100 Terminal, sford 00002 00003 #include "mbed.h" 00004 00005 #include "Terminal.h" 00006 00007 Terminal term(USBTX, USBRX); // tx, rx 00008 00009 int main() { 00010 term.printf("Hello World!\nHow are you?"); 00011 00012 wait(2); 00013 00014 term.locate(3,1); 00015 term.foreground(0xFF0000); 00016 term.printf("I'm Great!"); 00017 00018 wait(3); 00019 00020 term.cls(); 00021 }