Fixed comments

This commit is contained in:
Kristian Sloth Lauszus 2013-01-23 22:47:47 +01:00
parent bb8bdab3ba
commit fed2a0ad07
4 changed files with 6 additions and 7 deletions

View file

@ -127,4 +127,3 @@ void loop() {
//else if(PS3[i]->PS3MoveConnected) { //else if(PS3[i]->PS3MoveConnected) {
} }
} }

View file

@ -26,7 +26,7 @@ void loop() {
if(Wii.wiimoteConnected) { if(Wii.wiimoteConnected) {
if(Wii.getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down if(Wii.getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down
Serial.print(F("\r\nHOME")); Serial.print(F("\r\nHOME"));
Wii.disconnect(); // Disconnect the Wiimote - it will establish the connection again since the Wiimote automatically reconnects Wii.disconnect();
} }
else { else {
if(Wii.getButtonClick(LEFT)) { if(Wii.getButtonClick(LEFT)) {

View file

@ -38,8 +38,8 @@ void loop() {
if(Wii.wiimoteConnected) { if(Wii.wiimoteConnected) {
if(Wii.getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down if(Wii.getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down
Serial.print(F("\r\nHOME")); Serial.print(F("\r\nHOME"));
Wii.disconnect(); // Disconnect the Wiimote - it will establish the connection again since the Wiimote automatically reconnects Wii.disconnect();
} }
else { else {
if(Wii.getButtonClick(ONE)) if(Wii.getButtonClick(ONE))
Wii.IRinitialize(); // Run the initialisation sequence Wii.IRinitialize(); // Run the initialisation sequence
@ -51,7 +51,7 @@ void loop() {
printObjects--; printObjects--;
} }
} }
if(Wii.getButtonClick(PLUS)) { // Will track 2 brightest points if(Wii.getButtonClick(PLUS)) {
if(!Wii.isIRCameraEnabled()) if(!Wii.isIRCameraEnabled())
Serial.print(F("\r\nEnable IR camera first")); Serial.print(F("\r\nEnable IR camera first"));
else { 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(F("\r\nPitch: "));
Serial.print(Wii.getPitch()); Serial.print(Wii.getPitch());
Serial.print(F("\tRoll: ")); Serial.print(F("\tRoll: "));

View file

@ -37,7 +37,7 @@ void loop() {
if(Wii[i]->wiimoteConnected) { if(Wii[i]->wiimoteConnected) {
if(Wii[i]->getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down if(Wii[i]->getButtonClick(HOME)) { // You can use getButtonPress to see if the button is held down
Serial.print(F("\r\nHOME")); 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 { else {
if(Wii[i]->getButtonClick(LEFT)) { if(Wii[i]->getButtonClick(LEFT)) {