Skip to content

Instantly share code, notes, and snippets.

//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..