diff --git a/examples/Bluetooth/PS3Multi/PS3Multi.ino b/examples/Bluetooth/PS3Multi/PS3Multi.ino index 23e18362..595d0b69 100644 --- a/examples/Bluetooth/PS3Multi/PS3Multi.ino +++ b/examples/Bluetooth/PS3Multi/PS3Multi.ino @@ -127,4 +127,3 @@ void loop() { //else if(PS3[i]->PS3MoveConnected) { } } - diff --git a/examples/Bluetooth/Wii/Wii.ino b/examples/Bluetooth/Wii/Wii.ino index d1cc5524..8ed12d2f 100644 --- a/examples/Bluetooth/Wii/Wii.ino +++ b/examples/Bluetooth/Wii/Wii.ino @@ -26,7 +26,7 @@ void loop() { if(Wii.wiimoteConnected) { if(Wii.getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down Serial.print(F("\r\nHOME")); - Wii.disconnect(); // Disconnect the Wiimote - it will establish the connection again since the Wiimote automatically reconnects + Wii.disconnect(); } else { if(Wii.getButtonClick(LEFT)) { diff --git a/examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino b/examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino index 77ce3818..7434b39e 100644 --- a/examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino +++ b/examples/Bluetooth/WiiIRCamera/WiiIRCamera.ino @@ -38,8 +38,8 @@ void loop() { if(Wii.wiimoteConnected) { if(Wii.getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down Serial.print(F("\r\nHOME")); - Wii.disconnect(); // Disconnect the Wiimote - it will establish the connection again since the Wiimote automatically reconnects - } + Wii.disconnect(); + } else { if(Wii.getButtonClick(ONE)) Wii.IRinitialize(); // Run the initialisation sequence @@ -51,7 +51,7 @@ void loop() { printObjects--; } } - if(Wii.getButtonClick(PLUS)) { // Will track 2 brightest points + if(Wii.getButtonClick(PLUS)) { if(!Wii.isIRCameraEnabled()) Serial.print(F("\r\nEnable IR camera first")); else { @@ -100,7 +100,7 @@ void loop() { } } } - if(printAngle) { // There is no extension bytes avaliable, so the motionplus or nunchuck can't be read + if(printAngle) { // There is no extension bytes avaliable, so the Motionplus or Nunchuck can't be read Serial.print(F("\r\nPitch: ")); Serial.print(Wii.getPitch()); Serial.print(F("\tRoll: ")); diff --git a/examples/Bluetooth/WiiMulti/WiiMulti.ino b/examples/Bluetooth/WiiMulti/WiiMulti.ino index ab970158..a623efd2 100644 --- a/examples/Bluetooth/WiiMulti/WiiMulti.ino +++ b/examples/Bluetooth/WiiMulti/WiiMulti.ino @@ -37,7 +37,7 @@ void loop() { if(Wii[i]->wiimoteConnected) { if(Wii[i]->getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down Serial.print(F("\r\nHOME")); - Wii[i]->disconnect(); // Disconnect the Wiimote - it will establish the connection again since the Wiimote automatically reconnects + Wii[i]->disconnect(); } else { if(Wii[i]->getButtonClick(LEFT)) {