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:
- 3:5266af49834f
- Parent:
- 2:cf8ca6742db9
--- a/communicate.h Mon Aug 31 04:10:00 2015 +0000 +++ b/communicate.h Wed Sep 02 05:12:26 2015 +0000 @@ -1,7 +1,22 @@ /***RS485 Communication.***/ +//The pin is to communicate with RS_485 +#define RS485_TX p9 +#define RS485_RX p10 +#define RS485_Enable p8 Serial RS485(RS485_TX, RS485_RX); +/***IM920 Communication.***/ +//The pin is to communicate with IM920 +#define IM920_TX p28 +#define IM920_RX p27 +#define IM920_BUSY p26 + + /***Get state ps3con.***/ +//The pin is to communicate with SBDBT +#define SBDBT_TX p13 +#define SBDBT_RX p14 + Serial SBDBT(SBDBT_TX, SBDBT_RX); #define ps3_start 0x80 short square=0,triangle=0,circle=0,cross=0,up=0,down=0,right=0,left=0,l1=0,l2=0,r1=0,r2=0;