From 48f3153c3b142a49595f4d034ff2e0c78a3f885a Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sun, 7 Oct 2012 20:16:09 +0200 Subject: [PATCH] Updated example sketch to work with pairing --- examples/Bluetooth/Wii/Wii.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Bluetooth/Wii/Wii.ino b/examples/Bluetooth/Wii/Wii.ino index 2fdd15b7..d320e666 100644 --- a/examples/Bluetooth/Wii/Wii.ino +++ b/examples/Bluetooth/Wii/Wii.ino @@ -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;