mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Deploy felis/USB_Host_Shield_2.0 to github.com/felis/USB_Host_Shield_2.0.git:gh-pages
This commit is contained in:
parent
2cc394788d
commit
69dd89b6fe
2 changed files with 131 additions and 128 deletions
|
@ -278,193 +278,195 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="stringliteral">Also check out this excellent Wiki by Frank Zhao about the PS4 controller: <http://eleccelerator.com/wiki/index.php?title=DualShock_4> and this Linux driver: <https://github.com/chrippa/ds4drv>.</span></div>
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="stringliteral">Also check out this excellent Wiki by Frank Zhao about the PS4 controller: <http://eleccelerator.com/wiki/index.php?title=DualShock_4> and this Linux driver: <https://github.com/chrippa/ds4drv>.</span></div>
|
||||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="stringliteral">### PS3 Library</span></div>
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="stringliteral">Several guides on how to use the PS4 library has been written by Dr. James E. Barger and are available at the following link: <https://sites.google.com/view/vbatc-engineeringtechnology2/control-system-tutorials/ps4-tutorials>.</span></div>
|
||||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="stringliteral">These libraries consist of the [PS3BT](PS3BT.cpp) and [PS3USB](PS3USB.cpp). These libraries allows you to use a Dualshock 3, Navigation or a Motion controller with the USB Host Shield both via Bluetooth and USB.</span></div>
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="stringliteral">### PS3 Library</span></div>
|
||||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="stringliteral">In order to use your Playstation controller via Bluetooth you have to set the Bluetooth address of the dongle internally to your PS3 Controller. This can be achieved by first plugging in the Bluetooth dongle and wait a few seconds. Now plug in the controller via USB and wait until the LEDs start to flash. The library has now written the Bluetooth address of the dongle to the PS3 controller.</span></div>
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="stringliteral">These libraries consist of the [PS3BT](PS3BT.cpp) and [PS3USB](PS3USB.cpp). These libraries allows you to use a Dualshock 3, Navigation or a Motion controller with the USB Host Shield both via Bluetooth and USB.</span></div>
|
||||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="stringliteral">Finally simply plug in the Bluetooth dongle again and press PS on the PS3 controller. After a few seconds it should be connected to the dongle and ready to use.</span></div>
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="stringliteral">In order to use your Playstation controller via Bluetooth you have to set the Bluetooth address of the dongle internally to your PS3 Controller. This can be achieved by first plugging in the Bluetooth dongle and wait a few seconds. Now plug in the controller via USB and wait until the LEDs start to flash. The library has now written the Bluetooth address of the dongle to the PS3 controller.</span></div>
|
||||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="stringliteral">__Note:__ You will have to plug in the Bluetooth dongle before connecting the controller, as the library needs to read the address of the dongle. Alternatively you could set it in code like so: [PS3BT.ino#L20](examples/Bluetooth/PS3BT/PS3BT.ino#L20).</span></div>
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="stringliteral">Finally simply plug in the Bluetooth dongle again and press PS on the PS3 controller. After a few seconds it should be connected to the dongle and ready to use.</span></div>
|
||||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="stringliteral">For more information about the PS3 protocol see the official wiki: <https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information>.</span></div>
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="stringliteral">__Note:__ You will have to plug in the Bluetooth dongle before connecting the controller, as the library needs to read the address of the dongle. Alternatively you could set it in code like so: [PS3BT.ino#L20](examples/Bluetooth/PS3BT/PS3BT.ino#L20).</span></div>
|
||||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="stringliteral">Also take a look at the blog posts:</span></div>
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="stringliteral">For more information about the PS3 protocol see the official wiki: <https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information>.</span></div>
|
||||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/01/ps3-controller-bt-library-for-arduino/></span></div>
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="stringliteral">Also take a look at the blog posts:</span></div>
|
||||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="stringliteral">* <http://www.circuitsathome.com/mcu/sony-ps3-controller-support-added-to-usb-host-library></span></div>
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="stringliteral">* <http://www.circuitsathome.com/mcu/arduino/interfacing-ps3-controllers-via-usb></span></div>
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/01/ps3-controller-bt-library-for-arduino/></span></div>
|
||||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="stringliteral">* <http://www.circuitsathome.com/mcu/sony-ps3-controller-support-added-to-usb-host-library></span></div>
|
||||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="stringliteral">A special thanks go to the following people:</span></div>
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="stringliteral">* <http://www.circuitsathome.com/mcu/arduino/interfacing-ps3-controllers-via-usb></span></div>
|
||||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="stringliteral">1. _Richard Ibbotson_ who made this excellent guide: <http://www.circuitsathome.com/mcu/ps3-and-wiimote-game-controllers-on-the-arduino-host-shield-part></span></div>
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="stringliteral">A special thanks go to the following people:</span></div>
|
||||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="stringliteral">2. _Tomoyuki Tanaka_ for releasing his code for the Arduino USB Host shield connected to the wiimote: <http://www.circuitsathome.com/mcu/rc-car-controlled-by-wii-remote-on-arduino></span></div>
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="stringliteral">1. _Richard Ibbotson_ who made this excellent guide: <http://www.circuitsathome.com/mcu/ps3-and-wiimote-game-controllers-on-the-arduino-host-shield-part></span></div>
|
||||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="stringliteral">Also a big thanks all the people behind these sites about the Motion controller:</span></div>
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="stringliteral">2. _Tomoyuki Tanaka_ for releasing his code for the Arduino USB Host shield connected to the wiimote: <http://www.circuitsathome.com/mcu/rc-car-controlled-by-wii-remote-on-arduino></span></div>
|
||||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="stringliteral">* <http://thp.io/2010/psmove/></span></div>
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="stringliteral">Also a big thanks all the people behind these sites about the Motion controller:</span></div>
|
||||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="stringliteral">* <http://www.copenhagengamecollective.org/unimove/></span></div>
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="stringliteral">* <https://github.com/thp/psmoveapi></span></div>
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="stringliteral">* <http://thp.io/2010/psmove/></span></div>
|
||||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="stringliteral">* <http://code.google.com/p/moveonpc/></span></div>
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="stringliteral">* <http://www.copenhagengamecollective.org/unimove/></span></div>
|
||||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="stringliteral">* <https://github.com/thp/psmoveapi></span></div>
|
||||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="stringliteral">### Xbox Libraries</span></div>
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="stringliteral">* <http://code.google.com/p/moveonpc/></span></div>
|
||||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="stringliteral">The library supports both the original Xbox controller via USB and the Xbox 360 controller both via USB and wirelessly.</span></div>
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="stringliteral">### Xbox Libraries</span></div>
|
||||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="stringliteral">#### Xbox library</span></div>
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="stringliteral">The library supports both the original Xbox controller via USB and the Xbox 360 controller both via USB and wirelessly.</span></div>
|
||||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="stringliteral">The [XBOXOLD](XBOXOLD.cpp) class implements support for the original Xbox controller via USB.</span></div>
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="stringliteral">#### Xbox library</span></div>
|
||||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="stringliteral">All the information are from the following sites:</span></div>
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="stringliteral">The [XBOXOLD](XBOXOLD.cpp) class implements support for the original Xbox controller via USB.</span></div>
|
||||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="stringliteral">* <https://github.com/torvalds/linux/blob/master/Documentation/input/xpad.txt></span></div>
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="stringliteral">All the information are from the following sites:</span></div>
|
||||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="stringliteral">* <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c></span></div>
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="stringliteral">* <http://euc.jp/periphs/xbox-controller.ja.html></span></div>
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="stringliteral">* <https://github.com/torvalds/linux/blob/master/Documentation/input/xpad.txt></span></div>
|
||||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="stringliteral">* <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL#L15></span></div>
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="stringliteral">* <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c></span></div>
|
||||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="stringliteral">* <http://euc.jp/periphs/xbox-controller.ja.html></span></div>
|
||||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="stringliteral">#### Xbox 360 Library</span></div>
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="stringliteral">* <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL#L15></span></div>
|
||||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="stringliteral">The library support one Xbox 360 via USB or up to four Xbox 360 controllers wirelessly by using a [Xbox 360 wireless receiver](http://blog.tkjelectronics.dk/wp-content/uploads/xbox360-wireless-receiver.jpg).</span></div>
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="stringliteral">#### Xbox 360 Library</span></div>
|
||||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="stringliteral">To use it via USB use the [XBOXUSB](XBOXUSB.cpp) library or to use it wirelessly use the [XBOXRECV](XBOXRECV.cpp) library.</span></div>
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="stringliteral">The library support one Xbox 360 via USB or up to four Xbox 360 controllers wirelessly by using a [Xbox 360 wireless receiver](http://blog.tkjelectronics.dk/wp-content/uploads/xbox360-wireless-receiver.jpg).</span></div>
|
||||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="stringliteral">__Note that a Wireless controller can NOT be used via USB!__</span></div>
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="stringliteral">To use it via USB use the [XBOXUSB](XBOXUSB.cpp) library or to use it wirelessly use the [XBOXRECV](XBOXRECV.cpp) library.</span></div>
|
||||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="stringliteral">Examples code can be found in the [examples directory](examples/Xbox).</span></div>
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="stringliteral">__Note that a Wireless controller can NOT be used via USB!__</span></div>
|
||||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="stringliteral">Also see the following blog posts:</span></div>
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="stringliteral">Examples code can be found in the [examples directory](examples/Xbox).</span></div>
|
||||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="stringliteral">* <http://www.circuitsathome.com/mcu/xbox360-controller-support-added-to-usb-host-shield-2-0-library></span></div>
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="stringliteral">Also see the following blog posts:</span></div>
|
||||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/07/xbox-360-controller-support-added-to-the-usb-host-library/></span></div>
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/12/xbox-360-receiver-added-to-the-usb-host-library/></span></div>
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="stringliteral">* <http://www.circuitsathome.com/mcu/xbox360-controller-support-added-to-usb-host-shield-2-0-library></span></div>
|
||||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/07/xbox-360-controller-support-added-to-the-usb-host-library/></span></div>
|
||||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="stringliteral">All the information regarding the Xbox 360 controller protocol are form these sites:</span></div>
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/12/xbox-360-receiver-added-to-the-usb-host-library/></span></div>
|
||||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="stringliteral">* <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/UsbInfo></span></div>
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="stringliteral">All the information regarding the Xbox 360 controller protocol are form these sites:</span></div>
|
||||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="stringliteral">* <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/WirelessUsbInfo></span></div>
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="stringliteral">* <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL></span></div>
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="stringliteral">* <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/UsbInfo></span></div>
|
||||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="stringliteral">* <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/WirelessUsbInfo></span></div>
|
||||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="stringliteral">#### Xbox ONE Library</span></div>
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="stringliteral">* <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL></span></div>
|
||||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="stringliteral">An Xbox ONE controller is supported via USB in the [XBOXONE](XBOXONE.cpp) class. It is heavily based on the 360 library above. In addition to cross referencing the above, information on the protocol was found at:</span></div>
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="stringliteral">#### Xbox ONE Library</span></div>
|
||||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="stringliteral">* <https://github.com/quantus/xbox-one-controller-protocol></span></div>
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="stringliteral">An Xbox ONE controller is supported via USB in the [XBOXONE](XBOXONE.cpp) class. It is heavily based on the 360 library above. In addition to cross referencing the above, information on the protocol was found at:</span></div>
|
||||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="stringliteral">* <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c></span></div>
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="stringliteral">* <https://github.com/kylelemons/xbox/blob/master/xbox.go></span></div>
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="stringliteral">* <https://github.com/quantus/xbox-one-controller-protocol></span></div>
|
||||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="stringliteral">* <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c></span></div>
|
||||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="stringliteral">### [Wii library](Wii.cpp)</span></div>
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="stringliteral">* <https://github.com/kylelemons/xbox/blob/master/xbox.go></span></div>
|
||||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="stringliteral">The [Wii](Wii.cpp) library support the Wiimote, but also the Nunchuch and Motion Plus extensions via Bluetooth. The Wii U Pro Controller and Wii Balance Board are also supported via Bluetooth.</span></div>
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="stringliteral">### [Wii library](Wii.cpp)</span></div>
|
||||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="stringliteral">First you have to pair with the controller, this is done automatically by the library if you create the instance like so:</span></div>
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="stringliteral">The [Wii](Wii.cpp) library support the Wiimote, but also the Nunchuch and Motion Plus extensions via Bluetooth. The Wii U Pro Controller and Wii Balance Board are also supported via Bluetooth.</span></div>
|
||||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="stringliteral">```C++</span></div>
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="stringliteral">First you have to pair with the controller, this is done automatically by the library if you create the instance like so:</span></div>
|
||||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="stringliteral">WII Wii(&Btd, PAIR);</span></div>
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="stringliteral">```</span></div>
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="stringliteral">```C++</span></div>
|
||||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="stringliteral">WII Wii(&Btd, PAIR);</span></div>
|
||||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="stringliteral">And then press 1 & 2 at once on the Wiimote or the SYNC buttons if you are using a Wii U Pro Controller or a Wii Balance Board.</span></div>
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="stringliteral">```</span></div>
|
||||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="stringliteral">After that you can simply create the instance like so:</span></div>
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="stringliteral">And then press 1 & 2 at once on the Wiimote or the SYNC buttons if you are using a Wii U Pro Controller or a Wii Balance Board.</span></div>
|
||||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="stringliteral">```C++</span></div>
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="stringliteral">After that you can simply create the instance like so:</span></div>
|
||||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="stringliteral">WII Wii(&Btd);</span></div>
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="stringliteral">```</span></div>
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="stringliteral">```C++</span></div>
|
||||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="stringliteral">WII Wii(&Btd);</span></div>
|
||||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="stringliteral">Then just press any button on the Wiimote and it will then connect to the dongle.</span></div>
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="stringliteral">```</span></div>
|
||||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="stringliteral">Take a look at the example for more information: [Wii.ino](examples/Bluetooth/Wii/Wii.ino).</span></div>
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="stringliteral">Then just press any button on the Wiimote and it will then connect to the dongle.</span></div>
|
||||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="stringliteral">Also take a look at the blog post:</span></div>
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="stringliteral">Take a look at the example for more information: [Wii.ino](examples/Bluetooth/Wii/Wii.ino).</span></div>
|
||||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/08/wiimote-added-to-usb-host-library/></span></div>
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="stringliteral">Also take a look at the blog post:</span></div>
|
||||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="stringliteral">The Wii IR camera can also be used, but you will have to activate the code for it manually as it is quite large. Simply set ```ENABLE_WII_IR_CAMERA``` to 1 in [settings.h](settings.h).</span></div>
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="stringliteral">* <http://blog.tkjelectronics.dk/2012/08/wiimote-added-to-usb-host-library/></span></div>
|
||||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="stringliteral">The [WiiIRCamera.ino](examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino) example shows how it can be used.</span></div>
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="stringliteral">The Wii IR camera can also be used, but you will have to activate the code for it manually as it is quite large. Simply set ```ENABLE_WII_IR_CAMERA``` to 1 in [settings.h](settings.h).</span></div>
|
||||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="stringliteral">All the information about the Wii controllers are from these sites:</span></div>
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="stringliteral">The [WiiIRCamera.ino](examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino) example shows how it can be used.</span></div>
|
||||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote></span></div>
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="stringliteral">All the information about the Wii controllers are from these sites:</span></div>
|
||||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote/Extension_Controllers></span></div>
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck></span></div>
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote></span></div>
|
||||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Wii_Motion_Plus></span></div>
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote/Extension_Controllers></span></div>
|
||||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wii_Balance_Board></span></div>
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck></span></div>
|
||||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="stringliteral">* The old library created by _Tomoyuki Tanaka_: <https://github.com/moyuchin/WiiRemote_on_Arduino> also helped a lot.</span></div>
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Wii_Motion_Plus></span></div>
|
||||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="stringliteral">* <http://wiibrew.org/wiki/Wii_Balance_Board></span></div>
|
||||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="stringliteral">### [PS Buzz Library](PSBuzz.cpp)</span></div>
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="stringliteral">* The old library created by _Tomoyuki Tanaka_: <https://github.com/moyuchin/WiiRemote_on_Arduino> also helped a lot.</span></div>
|
||||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="stringliteral">This library implements support for the Playstation Buzz controllers via USB.</span></div>
|
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="stringliteral">### [PS Buzz Library](PSBuzz.cpp)</span></div>
|
||||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="stringliteral">It is essentially just a wrapper around the [HIDUniversal](hiduniversal.cpp) which takes care of the initializing and reading of the controllers. The [PSBuzz](PSBuzz.cpp) class simply inherits this and parses the data, so it is easy for users to read the buttons and turn the big red button on the controllers on and off.</span></div>
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="stringliteral">This library implements support for the Playstation Buzz controllers via USB.</span></div>
|
||||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="stringliteral">The example [PSBuzz.ino](examples/PSBuzz/PSBuzz.ino) shows how one can do this with just a few lines of code.</span></div>
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="stringliteral">It is essentially just a wrapper around the [HIDUniversal](hiduniversal.cpp) which takes care of the initializing and reading of the controllers. The [PSBuzz](PSBuzz.cpp) class simply inherits this and parses the data, so it is easy for users to read the buttons and turn the big red button on the controllers on and off.</span></div>
|
||||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="stringliteral">More information about the controller can be found at the following sites:</span></div>
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="stringliteral">The example [PSBuzz.ino](examples/PSBuzz/PSBuzz.ino) shows how one can do this with just a few lines of code.</span></div>
|
||||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="stringliteral">* http://www.developerfusion.com/article/84338/making-usb-c-friendly/</span></div>
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="stringliteral">More information about the controller can be found at the following sites:</span></div>
|
||||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="stringliteral">* https://github.com/torvalds/linux/blob/master/drivers/hid/hid-sony.c</span></div>
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="stringliteral">* http://www.developerfusion.com/article/84338/making-usb-c-friendly/</span></div>
|
||||||
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="stringliteral">### HID Libraries</span></div>
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="stringliteral">* https://github.com/torvalds/linux/blob/master/drivers/hid/hid-sony.c</span></div>
|
||||||
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="stringliteral">HID devices are also supported by the library. However these require you to write your own driver. A few example are provided in the [examples/HID](examples/HID) directory. Including an example for the [SteelSeries SRW-S1 Steering Wheel](examples/HID/SRWS1/SRWS1.ino).</span></div>
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="stringliteral">### HID Libraries</span></div>
|
||||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="stringliteral">### [MIDI Library](usbh_midi.cpp)</span></div>
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="stringliteral">HID devices are also supported by the library. However these require you to write your own driver. A few example are provided in the [examples/HID](examples/HID) directory. Including an example for the [SteelSeries SRW-S1 Steering Wheel](examples/HID/SRWS1/SRWS1.ino).</span></div>
|
||||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="stringliteral">The library support MIDI devices.</span></div>
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="stringliteral">### [MIDI Library](usbh_midi.cpp)</span></div>
|
||||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="stringliteral">You can convert USB MIDI keyboard to legacy serial MIDI.</span></div>
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="stringliteral">The library support MIDI devices.</span></div>
|
||||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="stringliteral">* [USB_MIDI_converter.ino](examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino)</span></div>
|
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="stringliteral">You can convert USB MIDI keyboard to legacy serial MIDI.</span></div>
|
||||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="stringliteral">* [USB_MIDI_converter_multi.ino](examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino)</span></div>
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="stringliteral">* [USB_MIDI_converter.ino](examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino)</span></div>
|
||||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="stringliteral">For information see the following page: <http://yuuichiakagawa.github.io/USBH_MIDI/>.</span></div>
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="stringliteral">* [USB_MIDI_converter_multi.ino](examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino)</span></div>
|
||||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="stringliteral"># Interface modifications</span></div>
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="stringliteral">For information see the following page: <http://yuuichiakagawa.github.io/USBH_MIDI/>.</span></div>
|
||||||
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <span class="stringliteral">The shield is using SPI for communicating with the MAX3421E USB host controller. It uses the SCK, MISO and MOSI pins via the ICSP on your board.</span></div>
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <span class="stringliteral"># Interface modifications</span></div>
|
||||||
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="stringliteral">Note this means that it uses pin 13, 12, 11 on an Arduino Uno, so these pins can not be used for anything else than SPI communication!</span></div>
|
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="stringliteral">The shield is using SPI for communicating with the MAX3421E USB host controller. It uses the SCK, MISO and MOSI pins via the ICSP on your board.</span></div>
|
||||||
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="stringliteral">Furthermore it uses one pin as SS and one INT pin. These are by default located on pin 10 and 9 respectively. They can easily be reconfigured in case you need to use them for something else by cutting the jumper on the shield and then solder a wire from the pad to the new pin.</span></div>
|
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="stringliteral">Note this means that it uses pin 13, 12, 11 on an Arduino Uno, so these pins can not be used for anything else than SPI communication!</span></div>
|
||||||
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="stringliteral">After that you need modify the following entry in [UsbCore.h](UsbCore.h):</span></div>
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="stringliteral">Furthermore it uses one pin as SS and one INT pin. These are by default located on pin 10 and 9 respectively. They can easily be reconfigured in case you need to use them for something else by cutting the jumper on the shield and then solder a wire from the pad to the new pin.</span></div>
|
||||||
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="stringliteral">```C++</span></div>
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="stringliteral">After that you need modify the following entry in [UsbCore.h](UsbCore.h):</span></div>
|
||||||
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="stringliteral">typedef MAX3421e<P10, P9> MAX3421E;</span></div>
|
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="stringliteral">```</span></div>
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="stringliteral">```C++</span></div>
|
||||||
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="stringliteral">typedef MAX3421e<P10, P9> MAX3421E;</span></div>
|
||||||
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="stringliteral">For instance if you have rerouted SS to pin 7 it should read:</span></div>
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="stringliteral">```</span></div>
|
||||||
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="stringliteral">```C++</span></div>
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="stringliteral">For instance if you have rerouted SS to pin 7 it should read:</span></div>
|
||||||
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="stringliteral">typedef MAX3421e<P7, P9> MAX3421E;</span></div>
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="stringliteral">```</span></div>
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="stringliteral">```C++</span></div>
|
||||||
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="stringliteral">typedef MAX3421e<P7, P9> MAX3421E;</span></div>
|
||||||
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="stringliteral">See the "Interface modifications" section in the [hardware manual](https://www.circuitsathome.com/usb-host-shield-hardware-manual) for more information.</span></div>
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="stringliteral">```</span></div>
|
||||||
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <span class="stringliteral"># FAQ</span></div>
|
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <span class="stringliteral">See the "Interface modifications" section in the [hardware manual](https://www.circuitsathome.com/usb-host-shield-hardware-manual) for more information.</span></div>
|
||||||
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="stringliteral">> When I plug my device into the USB connector nothing happens?</span></div>
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="stringliteral"># FAQ</span></div>
|
||||||
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <span class="stringliteral">* Try to connect a external power supply to the Arduino - this solves the problem in most cases.</span></div>
|
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <span class="stringliteral">> When I plug my device into the USB connector nothing happens?</span></div>
|
||||||
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="stringliteral">* You can also use a powered hub between the device and the USB Host Shield. You should then include the USB hub library: ```#include <usbhub.h>``` and create the instance like so: ```USBHub Hub1(&Usb);```.</span></div>
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="stringliteral">* Try to connect a external power supply to the Arduino - this solves the problem in most cases.</span></div>
|
||||||
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="stringliteral">> When I connecting my PS3 controller I get a output like this:</span></div>
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="stringliteral">* You can also use a powered hub between the device and the USB Host Shield. You should then include the USB hub library: ```#include <usbhub.h>``` and create the instance like so: ```USBHub Hub1(&Usb);```.</span></div>
|
||||||
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <span class="stringliteral">```</span></div>
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <span class="stringliteral">> When I connecting my PS3 controller I get a output like this:</span></div>
|
||||||
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="stringliteral">Dualshock 3 Controller Enabled</span></div>
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="stringliteral">```</span></div>
|
||||||
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="stringliteral">Dualshock 3 Controller Enabled</span></div>
|
||||||
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
||||||
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
||||||
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
||||||
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="stringliteral">```</span></div>
|
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
||||||
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="stringliteral">LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0</span></div>
|
||||||
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="stringliteral">* This means that your dongle does not support 2.0+EDR, so you will need another dongle. Please see the following [list](https://github.com/felis/USB_Host_Shield_2.0/wiki/Bluetooth-dongles) for tested working dongles.</span></div>
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="stringliteral">```</span></div>
|
||||||
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="stringliteral">> When compiling I am getting the following error: "fatal error: SPI.h: No such file or directory".</span></div>
|
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="stringliteral">* This means that your dongle does not support 2.0+EDR, so you will need another dongle. Please see the following [list](https://github.com/felis/USB_Host_Shield_2.0/wiki/Bluetooth-dongles) for tested working dongles.</span></div>
|
||||||
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="stringliteral"></span></div>
|
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="stringliteral"></span></div>
|
||||||
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="stringliteral">* Please make sure to include the SPI library like so: ```#include <SPI.h>``` in your .ino file.</span></div>
|
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="stringliteral">> When compiling I am getting the following error: "fatal error: SPI.h: No such file or directory".</span></div>
|
||||||
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> <span class="stringliteral"></span></div>
|
||||||
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="stringliteral">* Please make sure to include the SPI library like so: ```#include <SPI.h>``` in your .ino file.</span></div>
|
||||||
<div class="ttc" id="class_m_a_x3421e_html"><div class="ttname"><a href="class_m_a_x3421e.html">MAX3421e</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhost_8h_source.html#l00132">usbhost.h:132</a></div></div>
|
<div class="ttc" id="class_m_a_x3421e_html"><div class="ttname"><a href="class_m_a_x3421e.html">MAX3421e</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhost_8h_source.html#l00132">usbhost.h:132</a></div></div>
|
||||||
<div class="ttc" id="class_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00210">UsbCore.h:210</a></div></div>
|
<div class="ttc" id="class_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00210">UsbCore.h:210</a></div></div>
|
||||||
</div><!-- fragment --></div><!-- contents -->
|
</div><!-- fragment --></div><!-- contents -->
|
||||||
|
|
|
@ -250,6 +250,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||||
<p>It should then automatically pair the dongle with your controller. This only have to be done once.</p>
|
<p>It should then automatically pair the dongle with your controller. This only have to be done once.</p>
|
||||||
<p>For information see the following blog post: <a href="http://blog.tkjelectronics.dk/2014/01/ps4-controller-now-supported-by-the-usb-host-library/">http://blog.tkjelectronics.dk/2014/01/ps4-controller-now-supported-by-the-usb-host-library/</a>.</p>
|
<p>For information see the following blog post: <a href="http://blog.tkjelectronics.dk/2014/01/ps4-controller-now-supported-by-the-usb-host-library/">http://blog.tkjelectronics.dk/2014/01/ps4-controller-now-supported-by-the-usb-host-library/</a>.</p>
|
||||||
<p>Also check out this excellent Wiki by Frank Zhao about the PS4 controller: <a href="http://eleccelerator.com/wiki/index.php?title=DualShock_4">http://eleccelerator.com/wiki/index.php?title=DualShock_4</a> and this Linux driver: <a href="https://github.com/chrippa/ds4drv">https://github.com/chrippa/ds4drv</a>.</p>
|
<p>Also check out this excellent Wiki by Frank Zhao about the PS4 controller: <a href="http://eleccelerator.com/wiki/index.php?title=DualShock_4">http://eleccelerator.com/wiki/index.php?title=DualShock_4</a> and this Linux driver: <a href="https://github.com/chrippa/ds4drv">https://github.com/chrippa/ds4drv</a>.</p>
|
||||||
|
<p>Several guides on how to use the PS4 library has been written by Dr. James E. Barger and are available at the following link: <a href="https://sites.google.com/view/vbatc-engineeringtechnology2/control-system-tutorials/ps4-tutorials">https://sites.google.com/view/vbatc-engineeringtechnology2/control-system-tutorials/ps4-tutorials</a>.</p>
|
||||||
<h3>PS3 Library</h3>
|
<h3>PS3 Library</h3>
|
||||||
<p>These libraries consist of the <a href="PS3BT.cpp">PS3BT</a> and <a href="PS3USB.cpp">PS3USB</a>. These libraries allows you to use a Dualshock 3, Navigation or a Motion controller with the <a class="el" href="class_u_s_b.html">USB</a> Host Shield both via Bluetooth and <a class="el" href="class_u_s_b.html">USB</a>.</p>
|
<p>These libraries consist of the <a href="PS3BT.cpp">PS3BT</a> and <a href="PS3USB.cpp">PS3USB</a>. These libraries allows you to use a Dualshock 3, Navigation or a Motion controller with the <a class="el" href="class_u_s_b.html">USB</a> Host Shield both via Bluetooth and <a class="el" href="class_u_s_b.html">USB</a>.</p>
|
||||||
<p>In order to use your Playstation controller via Bluetooth you have to set the Bluetooth address of the dongle internally to your PS3 Controller. This can be achieved by first plugging in the Bluetooth dongle and wait a few seconds. Now plug in the controller via <a class="el" href="class_u_s_b.html">USB</a> and wait until the LEDs start to flash. The library has now written the Bluetooth address of the dongle to the PS3 controller.</p>
|
<p>In order to use your Playstation controller via Bluetooth you have to set the Bluetooth address of the dongle internally to your PS3 Controller. This can be achieved by first plugging in the Bluetooth dongle and wait a few seconds. Now plug in the controller via <a class="el" href="class_u_s_b.html">USB</a> and wait until the LEDs start to flash. The library has now written the Bluetooth address of the dongle to the PS3 controller.</p>
|
||||||
|
|
Loading…
Reference in a new issue