The programa() is working fine, my real issuie is on this
for ( int alr = 1 ; alr < 9; alr++){
if (alarms[alr] == int((millis() - minutos)/60000) && alarms[alr]>0) {
for (int x=posi; x< alr+1; x++){
if (posi < alr){
myStepper.step(256);
tone(speaker, 500, 500);
posi = alr;
}
}
}
I did what you told me and the first time works, but the second never works