-// int notes[] = {NOTE_C4, NOTE_G4,NOTE_A5 }; // suona una prima, quinta, ottava
-
-void setup(){
- //start serial connection
- Serial.begin(9600);
- //configure pin2/3/4 as an input and enable the internal pull-up resistor
- pinMode(2, INPUT_PULLUP);
- pinMode(3, INPUT_PULLUP);
- pinMode(4, INPUT_PULLUP);
- pinMode(9, OUTPUT);
+// int notes[] = {NOTE_C4, NOTE_G4,NOTE_C5 }; // suona una prima, quinta, ottava
+
+void setup() {
+ //start serial connection
+ Serial.begin(9600);
+ Serial.println("Welcome");
+ //configure pin2/3/4 as an input and enable the internal pull-up resistor
+ pinMode(tasti[0], INPUT_PULLUP);
+ pinMode(tasti[1], INPUT_PULLUP);
+ pinMode(tasti[2], INPUT_PULLUP); // Provare ad impostare i PIN con un
+ // ciclo for
+ pinMode(9, OUTPUT);