long periods of nothing...


i'm fishing pointers here... because following forum threads , googling sending round in circles....

i'm making robotic thing of time nothing, maybe 2 or 3 seconds every hour turn motor, light led or make tonelibrary warblings. i've been looking @ millis() instead of delay() there button needs work if presses it.

just every example i've seen , tried intepret or adapt has been using millis make happen while , stop happening. i'm trying reverse - nothing happens after long period happen.

i don't have useful code snippets post haven't got anywhere if point me along right path i'd appreciate it.

cheers

the loop function called in endless loop. on each pass, determines there needs done. whether reading sensors, turning leds on, spinning motors, displaying data on lcd, etc. not matter.

some of stuff time-dependent. has led been on long enough? time turn alarm on? time log data sd card?

those kinds of things rely on either delay() or millis() determine.

if there nothing do, or if has been done, loop ends, , called again.

long periods of time doing nothing arduino does, quite well. other computer.

perhaps isn't clear why way arduino works isn't sufficient.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > long periods of nothing...


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums