mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Updated example sketch to work with pairing
This commit is contained in:
parent
f8b5c46f60
commit
48f3153c3b
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@
|
|||
USB Usb;
|
||||
BTD Btd(&Usb); // You have to create the Bluetooth Dongle instance like so
|
||||
/* You can create the instance of the class in two ways */
|
||||
WII Wii(&Btd); // This will start inquiry which will connect to any Wiimote
|
||||
//WII Wii(&Btd,0x00,0x26,0x59,0x48,0xFF,0xFB); // This will connect to the Wiimote with that specific Bluetooth Address
|
||||
WII Wii(&Btd,PAIR); // This will start an inquiry and then pair with your Wiimote - you only have to do this once
|
||||
//WII Wii(&Btd); // After that you can simply create the instance like so and then press any button on the Wiimote
|
||||
|
||||
bool printAngle;
|
||||
|
||||
|
|
Loading…
Reference in a new issue