From 69dd89b6fe9e7117b134f93ddde673fc76165717 Mon Sep 17 00:00:00 2001 From: "Deployment Bot (from Travis CI)" Date: Tue, 28 May 2019 15:28:07 +0000 Subject: [PATCH] Deploy felis/USB_Host_Shield_2.0 to github.com/felis/USB_Host_Shield_2.0.git:gh-pages --- _r_e_a_d_m_e_8md_source.html | 258 ++++++++++++++++++----------------- index.html | 1 + 2 files changed, 131 insertions(+), 128 deletions(-) diff --git a/_r_e_a_d_m_e_8md_source.html b/_r_e_a_d_m_e_8md_source.html index 6fbe3713..471ffb57 100644 --- a/_r_e_a_d_m_e_8md_source.html +++ b/_r_e_a_d_m_e_8md_source.html @@ -278,193 +278,195 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
191 
192 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>.
193 
-
194 ### PS3 Library
+
194 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>.
195 
-
196 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.
+
196 ### PS3 Library
197 
-
198 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.
+
198 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.
199 
-
200 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.
+
200 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.
201 
-
202 __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).
+
202 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.
203 
-
204 For more information about the PS3 protocol see the official wiki: <https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information>.
+
204 __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).
205 
-
206 Also take a look at the blog posts:
+
206 For more information about the PS3 protocol see the official wiki: <https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information>.
207 
-
208 * <http://blog.tkjelectronics.dk/2012/01/ps3-controller-bt-library-for-arduino/>
-
209 * <http://www.circuitsathome.com/mcu/sony-ps3-controller-support-added-to-usb-host-library>
-
210 * <http://www.circuitsathome.com/mcu/arduino/interfacing-ps3-controllers-via-usb>
-
211 
-
212 A special thanks go to the following people:
+
208 Also take a look at the blog posts:
+
209 
+
210 * <http://blog.tkjelectronics.dk/2012/01/ps3-controller-bt-library-for-arduino/>
+
211 * <http://www.circuitsathome.com/mcu/sony-ps3-controller-support-added-to-usb-host-library>
+
212 * <http://www.circuitsathome.com/mcu/arduino/interfacing-ps3-controllers-via-usb>
213 
-
214 1. _Richard Ibbotson_ who made this excellent guide: <http://www.circuitsathome.com/mcu/ps3-and-wiimote-game-controllers-on-the-arduino-host-shield-part>
-
215 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>
-
216 
-
217 Also a big thanks all the people behind these sites about the Motion controller:
+
214 A special thanks go to the following people:
+
215 
+
216 1. _Richard Ibbotson_ who made this excellent guide: <http://www.circuitsathome.com/mcu/ps3-and-wiimote-game-controllers-on-the-arduino-host-shield-part>
+
217 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>
218 
-
219 * <http://thp.io/2010/psmove/>
-
220 * <http://www.copenhagengamecollective.org/unimove/>
-
221 * <https://github.com/thp/psmoveapi>
-
222 * <http://code.google.com/p/moveonpc/>
-
223 
-
224 ### Xbox Libraries
+
219 Also a big thanks all the people behind these sites about the Motion controller:
+
220 
+
221 * <http://thp.io/2010/psmove/>
+
222 * <http://www.copenhagengamecollective.org/unimove/>
+
223 * <https://github.com/thp/psmoveapi>
+
224 * <http://code.google.com/p/moveonpc/>
225 
-
226 The library supports both the original Xbox controller via USB and the Xbox 360 controller both via USB and wirelessly.
+
226 ### Xbox Libraries
227 
-
228 #### Xbox library
+
228 The library supports both the original Xbox controller via USB and the Xbox 360 controller both via USB and wirelessly.
229 
-
230 The [XBOXOLD](XBOXOLD.cpp) class implements support for the original Xbox controller via USB.
+
230 #### Xbox library
231 
-
232 All the information are from the following sites:
+
232 The [XBOXOLD](XBOXOLD.cpp) class implements support for the original Xbox controller via USB.
233 
-
234 * <https://github.com/torvalds/linux/blob/master/Documentation/input/xpad.txt>
-
235 * <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c>
-
236 * <http://euc.jp/periphs/xbox-controller.ja.html>
-
237 * <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL#L15>
-
238 
-
239 #### Xbox 360 Library
+
234 All the information are from the following sites:
+
235 
+
236 * <https://github.com/torvalds/linux/blob/master/Documentation/input/xpad.txt>
+
237 * <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c>
+
238 * <http://euc.jp/periphs/xbox-controller.ja.html>
+
239 * <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL#L15>
240 
-
241 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).
+
241 #### Xbox 360 Library
242 
-
243 To use it via USB use the [XBOXUSB](XBOXUSB.cpp) library or to use it wirelessly use the [XBOXRECV](XBOXRECV.cpp) library.
+
243 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).
244 
-
245 __Note that a Wireless controller can NOT be used via USB!__
+
245 To use it via USB use the [XBOXUSB](XBOXUSB.cpp) library or to use it wirelessly use the [XBOXRECV](XBOXRECV.cpp) library.
246 
-
247 Examples code can be found in the [examples directory](examples/Xbox).
+
247 __Note that a Wireless controller can NOT be used via USB!__
248 
-
249 Also see the following blog posts:
+
249 Examples code can be found in the [examples directory](examples/Xbox).
250 
-
251 * <http://www.circuitsathome.com/mcu/xbox360-controller-support-added-to-usb-host-shield-2-0-library>
-
252 * <http://blog.tkjelectronics.dk/2012/07/xbox-360-controller-support-added-to-the-usb-host-library/>
-
253 * <http://blog.tkjelectronics.dk/2012/12/xbox-360-receiver-added-to-the-usb-host-library/>
-
254 
-
255 All the information regarding the Xbox 360 controller protocol are form these sites:
+
251 Also see the following blog posts:
+
252 
+
253 * <http://www.circuitsathome.com/mcu/xbox360-controller-support-added-to-usb-host-shield-2-0-library>
+
254 * <http://blog.tkjelectronics.dk/2012/07/xbox-360-controller-support-added-to-the-usb-host-library/>
+
255 * <http://blog.tkjelectronics.dk/2012/12/xbox-360-receiver-added-to-the-usb-host-library/>
256 
-
257 * <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/UsbInfo>
-
258 * <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/WirelessUsbInfo>
-
259 * <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL>
-
260 
-
261 #### Xbox ONE Library
+
257 All the information regarding the Xbox 360 controller protocol are form these sites:
+
258 
+
259 * <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/UsbInfo>
+
260 * <http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/WirelessUsbInfo>
+
261 * <https://github.com/Grumbel/xboxdrv/blob/master/PROTOCOL>
262 
-
263 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:
+
263 #### Xbox ONE Library
264 
-
265 * <https://github.com/quantus/xbox-one-controller-protocol>
-
266 * <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c>
-
267 * <https://github.com/kylelemons/xbox/blob/master/xbox.go>
-
268 
-
269 ### [Wii library](Wii.cpp)
+
265 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:
+
266 
+
267 * <https://github.com/quantus/xbox-one-controller-protocol>
+
268 * <https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c>
+
269 * <https://github.com/kylelemons/xbox/blob/master/xbox.go>
270 
-
271 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.
+
271 ### [Wii library](Wii.cpp)
272 
-
273 First you have to pair with the controller, this is done automatically by the library if you create the instance like so:
+
273 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.
274 
-
275 ```C++
-
276 WII Wii(&Btd, PAIR);
-
277 ```
-
278 
-
279 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.
+
275 First you have to pair with the controller, this is done automatically by the library if you create the instance like so:
+
276 
+
277 ```C++
+
278 WII Wii(&Btd, PAIR);
+
279 ```
280 
-
281 After that you can simply create the instance like so:
+
281 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.
282 
-
283 ```C++
-
284 WII Wii(&Btd);
-
285 ```
-
286 
-
287 Then just press any button on the Wiimote and it will then connect to the dongle.
+
283 After that you can simply create the instance like so:
+
284 
+
285 ```C++
+
286 WII Wii(&Btd);
+
287 ```
288 
-
289 Take a look at the example for more information: [Wii.ino](examples/Bluetooth/Wii/Wii.ino).
+
289 Then just press any button on the Wiimote and it will then connect to the dongle.
290 
-
291 Also take a look at the blog post:
+
291 Take a look at the example for more information: [Wii.ino](examples/Bluetooth/Wii/Wii.ino).
292 
-
293 * <http://blog.tkjelectronics.dk/2012/08/wiimote-added-to-usb-host-library/>
+
293 Also take a look at the blog post:
294 
-
295 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).
+
295 * <http://blog.tkjelectronics.dk/2012/08/wiimote-added-to-usb-host-library/>
296 
-
297 The [WiiIRCamera.ino](examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino) example shows how it can be used.
+
297 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).
298 
-
299 All the information about the Wii controllers are from these sites:
+
299 The [WiiIRCamera.ino](examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino) example shows how it can be used.
300 
-
301 * <http://wiibrew.org/wiki/Wiimote>
-
302 * <http://wiibrew.org/wiki/Wiimote/Extension_Controllers>
-
303 * <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck>
-
304 * <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Wii_Motion_Plus>
-
305 * <http://wiibrew.org/wiki/Wii_Balance_Board>
-
306 * The old library created by _Tomoyuki Tanaka_: <https://github.com/moyuchin/WiiRemote_on_Arduino> also helped a lot.
-
307 
-
308 ### [PS Buzz Library](PSBuzz.cpp)
+
301 All the information about the Wii controllers are from these sites:
+
302 
+
303 * <http://wiibrew.org/wiki/Wiimote>
+
304 * <http://wiibrew.org/wiki/Wiimote/Extension_Controllers>
+
305 * <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck>
+
306 * <http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Wii_Motion_Plus>
+
307 * <http://wiibrew.org/wiki/Wii_Balance_Board>
+
308 * The old library created by _Tomoyuki Tanaka_: <https://github.com/moyuchin/WiiRemote_on_Arduino> also helped a lot.
309 
-
310 This library implements support for the Playstation Buzz controllers via USB.
+
310 ### [PS Buzz Library](PSBuzz.cpp)
311 
-
312 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.
+
312 This library implements support for the Playstation Buzz controllers via USB.
313 
-
314 The example [PSBuzz.ino](examples/PSBuzz/PSBuzz.ino) shows how one can do this with just a few lines of code.
+
314 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.
315 
-
316 More information about the controller can be found at the following sites:
+
316 The example [PSBuzz.ino](examples/PSBuzz/PSBuzz.ino) shows how one can do this with just a few lines of code.
317 
-
318 * http://www.developerfusion.com/article/84338/making-usb-c-friendly/
-
319 * https://github.com/torvalds/linux/blob/master/drivers/hid/hid-sony.c
-
320 
-
321 ### HID Libraries
+
318 More information about the controller can be found at the following sites:
+
319 
+
320 * http://www.developerfusion.com/article/84338/making-usb-c-friendly/
+
321 * https://github.com/torvalds/linux/blob/master/drivers/hid/hid-sony.c
322 
-
323 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).
+
323 ### HID Libraries
324 
-
325 ### [MIDI Library](usbh_midi.cpp)
+
325 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).
326 
-
327 The library support MIDI devices.
-
328 You can convert USB MIDI keyboard to legacy serial MIDI.
-
329 
-
330 * [USB_MIDI_converter.ino](examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino)
-
331 * [USB_MIDI_converter_multi.ino](examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino)
-
332 
-
333 For information see the following page: <http://yuuichiakagawa.github.io/USBH_MIDI/>.
+
327 ### [MIDI Library](usbh_midi.cpp)
+
328 
+
329 The library support MIDI devices.
+
330 You can convert USB MIDI keyboard to legacy serial MIDI.
+
331 
+
332 * [USB_MIDI_converter.ino](examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino)
+
333 * [USB_MIDI_converter_multi.ino](examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino)
334 
-
335 # Interface modifications
+
335 For information see the following page: <http://yuuichiakagawa.github.io/USBH_MIDI/>.
336 
-
337 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.
+
337 # Interface modifications
338 
-
339 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!
+
339 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.
340 
-
341 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.
+
341 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!
342 
-
343 After that you need modify the following entry in [UsbCore.h](UsbCore.h):
+
343 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.
344 
-
345 ```C++
-
346 typedef MAX3421e<P10, P9> MAX3421E;
-
347 ```
-
348 
-
349 For instance if you have rerouted SS to pin 7 it should read:
+
345 After that you need modify the following entry in [UsbCore.h](UsbCore.h):
+
346 
+
347 ```C++
+
348 typedef MAX3421e<P10, P9> MAX3421E;
+
349 ```
350 
-
351 ```C++
-
352 typedef MAX3421e<P7, P9> MAX3421E;
-
353 ```
-
354 
-
355 See the "Interface modifications" section in the [hardware manual](https://www.circuitsathome.com/usb-host-shield-hardware-manual) for more information.
+
351 For instance if you have rerouted SS to pin 7 it should read:
+
352 
+
353 ```C++
+
354 typedef MAX3421e<P7, P9> MAX3421E;
+
355 ```
356 
-
357 # FAQ
+
357 See the "Interface modifications" section in the [hardware manual](https://www.circuitsathome.com/usb-host-shield-hardware-manual) for more information.
358 
-
359 > When I plug my device into the USB connector nothing happens?
+
359 # FAQ
360 
-
361 * Try to connect a external power supply to the Arduino - this solves the problem in most cases.
-
362 * 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);```.
-
363 
-
364 > When I connecting my PS3 controller I get a output like this:
+
361 > When I plug my device into the USB connector nothing happens?
+
362 
+
363 * Try to connect a external power supply to the Arduino - this solves the problem in most cases.
+
364 * 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);```.
365 
-
366 ```
-
367 Dualshock 3 Controller Enabled
-
368 
-
369 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
-
370 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
+
366 > When I connecting my PS3 controller I get a output like this:
+
367 
+
368 ```
+
369 Dualshock 3 Controller Enabled
+
370 
371 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
372 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
373 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
-
374 ```
-
375 
-
376 * 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.
+
374 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
+
375 LeftHatX: 0 LeftHatY: 0 RightHatX: 0 RightHatY: 0
+
376 ```
377 
-
378 > When compiling I am getting the following error: "fatal error: SPI.h: No such file or directory".
+
378 * 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.
379 
-
380 * Please make sure to include the SPI library like so: ```#include <SPI.h>``` in your .ino file.
+
380 > When compiling I am getting the following error: "fatal error: SPI.h: No such file or directory".
+
381 
+
382 * Please make sure to include the SPI library like so: ```#include <SPI.h>``` in your .ino file.
Definition: usbhost.h:132
Definition: UsbCore.h:210
diff --git a/index.html b/index.html index 7d648622..140bcbbd 100644 --- a/index.html +++ b/index.html @@ -250,6 +250,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

It should then automatically pair the dongle with your controller. This only have to be done once.

For information see the following blog post: http://blog.tkjelectronics.dk/2014/01/ps4-controller-now-supported-by-the-usb-host-library/.

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.

+

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.

PS3 Library

These libraries consist of the PS3BT and PS3USB. These libraries allows you to use a Dualshock 3, Navigation or a Motion controller with the USB Host Shield both via Bluetooth and USB.

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.