Go Down

Topic: Have a loop run for X amount of time (Read 3954 times) previous topic - next topic

Arrch


The first block of code you quoted I was playing with my concept. I just wanted to see if that function worked. EndTime was set to 10 seconds, so as long as I pushed the first input before 10 seconds it would perform as hoped. I just need a way to replace millis() with a timer function starting at 0 seconds when the button is pushed.

The second piece of code I was tinkering with that concept. I wanted the FLED which was controlled by FSTATE to be Low while my timer was still going. Yes, that proves my lack of understanding at this point ;)


For future reference, It's a good idea to remove "tinkering code" if it isn't part of your actual project. Otherwise, it is distracting and leads to wasted time when you're seeking help.

Go Up