Simon Ford
/
Terminal_HelloWorld
Hello World for the Terminal ANSI/VT100 interface library
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 // simple test for a ANSI/VT100 Terminal, sford 00002 00003 #include "mbed.h" 00004 #include "Terminal.h" 00005 00006 Terminal term(USBTX, USBRX); // tx, rx 00007 00008 int main() { 00009 term.printf("Hello World!\nHow are you?"); 00010 00011 wait(2); 00012 00013 term.locate(3,1); 00014 term.foreground(0xFF0000); 00015 term.printf("I'm Great!"); 00016 00017 wait(3); 00018 00019 term.cls(); 00020 }
Generated on Tue Jul 12 2022 16:18:03 by 1.7.2