Wiring

There are a lot of wires involved in the Knock Your Lights Out game.

To make sure the correct connections were made I triple checked everything at every stage (and still made mistakes).

Phew!


CODE...
int buzzerPin = 10; // set the piezo pin number

const int ledA = 1; // BLACK these are the LED pins, constants won't change
const int ledB = 2; // WHITE
const int ledC = 3; // GREY
const int ledD = 4; // PURPLE
const int ledE = 5; // BLUE
const int ledF = 6; // GREEN


const int BUTTON_A = 7; // YELLOW these are the button pins, constants won't change
const int BUTTON_B = 8; // ORANGE
const int BUTTON_C = 9; // RED
const int BUTTON_D = 11; // BLACK
const int BUTTON_E = 12; // WHITE
const int BUTTON_F = 13; // GREY

Comments