Hi
i am making a project and i am trying to set lights simultaneously with for loop melody
ן can't do it and every time i add the lights blink command its ruin the melody
how i can add blinking lights to the melody and not ruin in
this is the part that i want lights-
for (i = 150; i < 1800; i += 1) {
tone(6, i, time);
delay(wait);
bp = digitalRead (7);
if (bp==0){
break ;
}
}
for (i = 1800; i > 150; i -= 1) {
tone(6, i, time);
delay(wait);
bp = digitalRead (7);
if (bp==0){
break ;
}
}