Appéro
/
liaison_RS232_20
liaison_RS232_exercie 20 sans tableau
Diff: main.cpp
- Revision:
- 0:30a85656e22a
diff -r 000000000000 -r 30a85656e22a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jan 10 16:02:02 2017 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "C12832.h" + +Serial liaison (USBTX, USBRX, 9600); +DigitalOut myled( D8); +C12832 LCD(D11, D13, D12, D7, D10); + +int main() +{ + char recu = 0; + while (1) + { + if (liaison.readable()) + { + + myled=!myled; + recu = liaison.getc (); + + LCD.printf("%c", recu); + + + } + } +} \ No newline at end of file