inside the switch(); The array itsONled[] = {0,0,0,0} is used to set the initial state of LEDs (in our case OFF) and has number of leds + 1 more zeros, so if you add 2 more leds, then add 2 more zeros ...
In this project we on/off an LED by the sound of clap. A sound sensor is used to detect the sound and send the signal to the Arduino which sets the LED to on/off. When the sensor senses a sound, a ...