Folks, this is part of the code I am looking at:
for (int i=0;i<4;i++)
alarm_is_on=false; // Turn off alarm
Yes, from the "multi day alarm clock" code.
I want the output (aka BUZZER) to go high at alarm time.
I have started to modify the code to do that, but it still seems to pulse. LED blinks.
Now I could simply do the line: digitalwrite(buzzer,high) but then there would be no checking for buttons pressed and turning the alarm off.
So it got me to look at the bigger routine.
This "wait_on_escape" looks like what detects the button press.
But other routines use that instruction (which it isn't - right?) for delays.
Alas I can't find a routine called "wait_on_escape" so I am stuck.
Basically in the alarm part of the code - which by that time the alarm IS valid - turns on the BUZZER pin to HIGH and leaves it there until a key is pressed.
I also would like to print a little bell symbol on the screen to show the alarm is active as well.
I have the code - well, other people have shown it to me - and I can work it out, but WHERE to put it is yet beyond me.
Anyway, I am slowly learning.