bruker nå ny serial klasse med større hastighet.. Forøvrig baser en del av koden på Flaskepant oppgaven fra lab.
Dependencies: SerialTerminal mbed
Fork of Fancy-Terminal by
main.cpp
- Committer:
- madmonkeyman82
- Date:
- 2015-10-15
- Revision:
- 3:35b0711f1832
- Parent:
- 2:89b263d1a399
- Child:
- 4:14bd961881ff
File content as of revision 3:35b0711f1832:
// simple test for a ANSI/VT100 Terminal, sford #include "mbed.h" #include "Terminal.h" Terminal term(USBTX, USBRX); // tx, rx int main() { while(1) { term.cls(); term.locate(20,10); term.printf("How are you?"); wait(2); term.locate(20,11); term.foreground(0xFF0000); term.background(0x000007F); term.printf("I'm Great!"); term.hideCursor(); wait(2); } }