Skip to content

Commit

Permalink
Removed color detection actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore authored Mar 10, 2021
1 parent 76652b2 commit 0fcfc54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DuploTrainControl/DuploTrainControl.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,17 @@ void colorSensorCallback(void *hub, byte portNumber, DeviceType deviceType, uint
Serial.print("Scanned color: ");
Serial.println(COLOR_STRING[scanned_color]);
myHub->setLedColor((Color)scanned_color);
/*
if (scanned_color == (byte)RED) {
myHub->playSound((byte)DuploTrainBaseSound::BRAKE);
} else if (scanned_color == (byte)BLUE) {
myHub->playSound((byte)DuploTrainBaseSound::WATER_REFILL);
} else if (scanned_color == (byte)YELLOW) {
myHub->playSound((byte)DuploTrainBaseSound::HORN);
} else if (scanned_color == (byte)GREEN) {
speed = -speed;
}
*/
}
}

Expand Down

0 comments on commit 0fcfc54

Please sign in to comment.