Shop OBEX P1 Docs P2 Docs Learn Events
telling time to a program in action — Parallax Forums

telling time to a program in action

MatthewMatthew Posts: 200
edited 2005-01-24 14:57 in BASIC Stamp
So I'm trying to do something like this:

(time starts when trigger is released)

When time is between 0-20 seconds, do this
-fsdhgfkdsahg

When·time is between 20-40 seconds, do this
-fgsgfhgkjfhg

When·time is between 40-60 seconds, do this
-afdfhdkfh

Any ideas?

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-01-24 14:57
    Depends on what "do this" means. You can synthesize an internal clock or use an external RTC and check it periodically.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
Sign In or Register to comment.