/* Simon Simula il gioco di Simon con tre led e tre interruttori The circuit: Vedi lo schema fatto con Fritzing Created 18 Gennaio 2009 By Alessandro Bugatti */ const int debugPin = 13; const int inPin1 = 12; const int outPin1 = 11; const int inPin2 = 9; const int outPin2 = 8; const int inPin3 = 5; const int outPin3 = 4; const int buzzerPin = 3; int inPin[]={inPin1,9,5}; int outPin[]={11,8,4}; const int dim = 3; const int BUZZ_GIALLO = 50; const int BUZZ_VERDE = 75; const int BUZZ_ROSSO = 100; const int MAX = 20; int sequenza[MAX]; int buzz[]={BUZZ_GIALLO,BUZZ_VERDE, BUZZ_ROSSO}; int tempo = 1000; int errore; int i; //Spegne tutti i led void cleanOut() { for (int i=0; i