Loading...
Pages: 1 [2]   Go Down
Author Topic: Have a loop run for X amount of time  (Read 828 times)
0 Members and 1 Guest are viewing this topic.
California
Offline Offline
Edison Member
*
Karma: 41
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-wink

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.
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: