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:
Thu Jun 03 17:13:09 2010 +0000
Revision:
0:93888862261d
Child:
1:dae8b7bc926d

        

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
simon 0:93888862261d 5 #include "Terminal.h"
simon 0:93888862261d 6
simon 0:93888862261d 7 Terminal term(USBTX, USBRX); // tx, rx
simon 0:93888862261d 8
simon 0:93888862261d 9 int main() {
simon 0:93888862261d 10 term.printf("Hello World!\nHow are you?");
simon 0:93888862261d 11
simon 0:93888862261d 12 wait(2);
simon 0:93888862261d 13
simon 0:93888862261d 14 term.locate(3,1);
simon 0:93888862261d 15 term.foreground(0xFF0000);
simon 0:93888862261d 16 term.printf("I'm Great!");
simon 0:93888862261d 17
simon 0:93888862261d 18 wait(3);
simon 0:93888862261d 19
simon 0:93888862261d 20 term.cls();
simon 0:93888862261d 21 }