Xbox 360 Wireless Controller for Windows library

Dependencies:   USBHost USBHostXpad mbed

Fork of USBHostMSD_HelloWorld by Samuel Mokrani

Xbox 360 Wireless Controller for Windows

Microsoftの XBOX 360 ワイヤレスコントローラーを、パソコン用のUSB接続型レシーバーで mbed に接続して使えるライブラリです。
ワイヤードのXBOX360コントローラーや、初代XBOXコントローラーのコードも含んでいますが未確認です。

USB Host 機能を使いますので mbed LPC1768 専用です。

たまに usb_thread could not read dev descr を出力して処理が停止する不具合があります。

/media/uploads/samux/usb_host_schema.jpg

Import libraryUSBHostXpad

Xbox 360 Wireless Controller for Windows library. sample: http://mbed.org/users/okini3939/code/USBHostXpad_HelloWorld/

Files at this revision

API Documentation at this revision

Comitter:
okini3939
Date:
Fri Dec 13 07:37:25 2013 +0000
Parent:
10:4b0c8727f0c3
Child:
12:f6d7bcc93e97
Commit message:
fix

Changed in this revision

USBHostXpad.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBHostXpad.lib	Wed Dec 11 04:11:46 2013 +0000
+++ b/USBHostXpad.lib	Fri Dec 13 07:37:25 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/okini3939/code/USBHostXpad/#5bb153989f33
+http://mbed.org/users/okini3939/code/USBHostXpad/#53ce7778a155
--- a/main.cpp	Wed Dec 11 04:11:46 2013 +0000
+++ b/main.cpp	Fri Dec 13 07:37:25 2013 +0000
@@ -21,7 +21,7 @@
         // when connected, attach handler called on xpad event
         xpad.attachEvent(onXpadEvent);
 
-        xpad.led(XPAD_LED_ROTATE);
+        xpad.led(USBHostXpad::LED_ROTATE);
         Thread::wait(500);
         xpad.rumble(0xff, 0);
         Thread::wait(500);
@@ -29,7 +29,7 @@
         Thread::wait(500);
         xpad.rumble(0, 0);
         Thread::wait(500);
-        xpad.led(XPAD_LED1_ON);
+        xpad.led(USBHostXpad::LED1_ON);
 
         // wait until the mouse is disconnected
         while(xpad.connected()) {