Appéro
/
liaison_RS232_20
liaison_RS232_exercie 20 sans tableau
Revision 0:30a85656e22a, committed 2017-01-10
- Comitter:
- Ruinedbot
- Date:
- Tue Jan 10 16:02:02 2017 +0000
- Commit message:
- RS232 Exercice 20 sans tableau
Changed in this revision
diff -r 000000000000 -r 30a85656e22a C12832.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Tue Jan 10 16:02:02 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/askksa12543/code/C12832/#990d5eec2ef6
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
diff -r 000000000000 -r 30a85656e22a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jan 10 16:02:02 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/99b5ccf27215 \ No newline at end of file