Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:2b238baaf241, committed 2017-11-16
- Comitter:
- fabeltranm
- Date:
- Thu Nov 16 00:37:08 2017 +0000
- Parent:
- 3:6d59b6f1cac0
- Commit message:
- add BT
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6d59b6f1cac0 -r 2b238baaf241 main.cpp --- a/main.cpp Thu Nov 16 00:35:08 2017 +0000 +++ b/main.cpp Thu Nov 16 00:37:08 2017 +0000 @@ -18,8 +18,8 @@ deviceBT.baud(9600); output1=0; // Setup a serial interrupt function to receive data - device.attach(&Rx_interruptBT, Serial::RxIrq); - deviceBT.attach(&Rx_interrupt, Serial::RxIrq); + device.attach(&Rx_interrupt, Serial::RxIrq); + deviceBT.attach(&Rx_interruptBT, Serial::RxIrq); while(1) { wait_ms(2000);