New answers tagged

0

void alarm() { int AlarmState = 0; int count = 1; while(AlarmState==0) //Your count == 2, then while starts over again and you redefine you count to 1, so thats becomes infinite loop { int count = 1; //Here you initialize "count" second time AlarmState = digitalRead(alarmStop); digitalWrite(buzz,HIGH); AlarmState = ...


Top 50 recent answers are included