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.
Dependencies: mbed
Fork of Nucleo_PS3_Jikken_XBEE by
Diff: main.cpp
- Revision:
- 29:9cfd082de61e
- Parent:
- 28:37147ae0df52
- Child:
- 30:0226cfd4965a
diff -r 37147ae0df52 -r 9cfd082de61e main.cpp --- a/main.cpp Fri Oct 30 07:33:29 2015 +0000 +++ b/main.cpp Fri Oct 30 08:38:18 2015 +0000 @@ -25,6 +25,7 @@ #define stopCount 33 #define shotWait 0.5 #define isXBOX true +#define XBOXrate 19200 Serial pc(SERIAL_TX, SERIAL_RX); //Serial Dev(D8,D2);//コントローラー @@ -228,7 +229,7 @@ pc.baud(230400); //Dev.baud(921600);//PS3 //Dev.baud(57600);//XBOX - Dev.baud((isXBOX)?(57600):(921600)); + Dev.baud((isXBOX)?(XBOXrate):(921600)); Mechanum.baud(230400); DigitalIn bt(USER_BUTTON); Dev.attach(num,Serial::RxIrq);//受信割り込み設定