mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed comments
This commit is contained in:
parent
bb8bdab3ba
commit
fed2a0ad07
4 changed files with 6 additions and 7 deletions
|
@ -127,4 +127,3 @@ void loop() {
|
||||||
//else if(PS3[i]->PS3MoveConnected) {
|
//else if(PS3[i]->PS3MoveConnected) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
|
@ -38,7 +38,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(ONE))
|
if(Wii.getButtonClick(ONE))
|
||||||
|
@ -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: "));
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue