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 El-POM1001

Committer:
simon
Date:
Tue Nov 23 16:05:15 2010 +0000
Revision:
1:dae8b7bc926d
Parent:
0:93888862261d
Child:
2:89b263d1a399
Using the new library system

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:93888862261d 1 // simple test for a ANSI/VT100 Terminal, sford
simon 0:93888862261d 2
simon 0:93888862261d 3 #include "mbed.h"
simon 0:93888862261d 4 #include "Terminal.h"
simon 0:93888862261d 5
simon 0:93888862261d 6 Terminal term(USBTX, USBRX); // tx, rx
simon 0:93888862261d 7
simon 0:93888862261d 8 int main() {
simon 0:93888862261d 9 term.printf("Hello World!\nHow are you?");
simon 0:93888862261d 10
simon 0:93888862261d 11 wait(2);
simon 0:93888862261d 12
simon 0:93888862261d 13 term.locate(3,1);
simon 0:93888862261d 14 term.foreground(0xFF0000);
simon 0:93888862261d 15 term.printf("I'm Great!");
simon 0:93888862261d 16
simon 0:93888862261d 17 wait(3);
simon 0:93888862261d 18
simon 0:93888862261d 19 term.cls();
simon 0:93888862261d 20 }