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_XBOX by
Revision 29:9cfd082de61e, committed 2015-10-30
- Comitter:
 - nodoame
 - Date:
 - Fri Oct 30 08:38:18 2015 +0000
 - Parent:
 - 28:37147ae0df52
 - Commit message:
 - 201510030; XBOX??
 
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- 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);//受信割り込み設定
    