Go Down

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


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131