Console Serial IO con display OLED e seriale asincrona
Dependencies: mbed BufferedSerial AserialIOFuncLib SSD1306 TerminalPlusV2
Fork of SerialIO by
Console Serial IO con display OLED e seriale asincrona
Revision 2:e7915367de83, committed 2015-05-21
- Comitter:
- MaxScorda
- Date:
- Thu May 21 11:59:14 2015 +0000
- Parent:
- 1:e17894b4be01
- Child:
- 3:2f32e34d820c
- Commit message:
- Con i nuovi pin dialoga
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu May 21 00:08:26 2015 +0000 +++ b/main.cpp Thu May 21 11:59:14 2015 +0000 @@ -5,7 +5,7 @@ DigitalOut myled2(LED2); //definisce myled InterruptIn mybutton(USER_BUTTON); Serial pc(SERIAL_TX, SERIAL_RX); //Apertura della seriale 2 -Serial ardser(D8, D2); //Apertura della seriale 1 *opzionale vedi sotto +Serial ardser(SERIAL_TX, SERIAL_RX); //Apertura della seriale 1 *opzionale vedi sotto @@ -38,6 +38,7 @@ banner(); while(1) { + pc.printf("xxxxx\n\r"); ardser.printf("Cont %d\n\r", cont++); c=pc.getc(); //legge un carattere dalla seriale if (c != 13) {