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.
Fork of 2015robot_main by
Diff: communicate.h
- Revision:
- 59:9d66edf3e734
- Parent:
- 57:3fbd487e055e
- Child:
- 67:658a54be9212
- Child:
- 68:2b2b88ecdcce
diff -r 3fbd487e055e -r 9d66edf3e734 communicate.h --- a/communicate.h Tue Sep 29 08:23:03 2015 +0000 +++ b/communicate.h Thu Oct 01 09:52:36 2015 +0000 @@ -4,6 +4,9 @@ Serial RS485(RS485_TX, RS485_RX); #define EnablePin p7 DigitalOut Enable(EnablePin); +inline void initializeRS485(){ + RS485.format(8,Serial::Even); +} inline void sendData(int address, int data5) { unsigned int data; if (data5 <= 31) {