2 const int NUMBER_OF_DRUMS = 4;
5 const int PINS[4] = { 8, 9, 10, 11 };
6 int pinDelays[4] = { 0, 0, 0, 0 };
9 for (int i = 0; i < NUMBER_OF_DRUMS; i++) {
10 pinMode(PINS[i], INPUT);
16 for (int i = 0; i < NUMBER_OF_DRUMS; i++) {
17 if (digitalRead(PINS[i]) == HIGH && pinDelays[i] < 1) {
18 Serial.print("drum,");
22 if (pinDelays[i] > 0) {