so Im trying to make an LED turn on for a set interval (1 second) when that function is called. the function will only be called if an IF statement in the main loop is true. I would then like the LED to turn back off after the 5 seconds then “reset” to allow me to call the function again if that same IF statement is true. I have been trying this for a couple days and feel like im missing something basic in my code to allow this.
any tips would be awesome.
sketch_mar27a.ino (783 Bytes)