This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Updated to add ambient light sensing and audio feedback on button presses. | |
// | |
//For the circuit and application explanation see http://www.instructables.com/id/Bot-Laser-Gallery-Game/ | |
// | |
const byte numberOfBots = 5; | |
const byte sensorPins[] = {A0,A1,A2,A3,A4}; // All analog inputs | |
const byte ledPins[] = {3,4,5,6,7}; // feed back leds | |
unsigned int sensorValues[numberOfBots]; // values of analogs | |
bool botStates[numberOfBots]; //state of analogs //I realize now that I should have made a struct or class buttt.. |