Been working on a pet-project the last day and no further ahead now than I was yesterday at this time. I am very new to programming and this one is getting to me.
Looking for a way to turn on an LED on Pin 0 every 30 seconds for 2 seconds, and repeat. This I have working just fine. The second part I am trying to figure out is to sense a pushbutton on Pin 2 and if active, turn the LED on for as long as the button is pressed. After releasing the button, we can go back to the 30 second on/off sequence.
I have tried so many things, I cannot seem to get it.
Anyone share some thoughts on how to do this??