Timer in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FRENIKA0
    New Member
    • Feb 2008
    • 1

    Timer in C

    I am working with a touchpanel. As of now, whenever I press the panel, a LED lights. And as soon as I raise from the panel, the LED goes off. Well, I want to set up some type of timer or wait sequence within my code to where when I press the touch panel, the LED lights for a specified number of seconds. BUT even if I raise up off the panel, the LED will still be lit for that specified number of seconds..

    To put more clearly... [As of now] Person A presses the touch panel and the LED is only lit while the person's finger is on the panel..

    [Ideally] Person B presses the touch panel and the timer sequence for the LED start and even though Person B lifted its finger off of the panel, the LED will still be light for the specified amoount of time.

    Any help with this will be greatly appreciated...
  • Simonius
    New Member
    • Feb 2008
    • 47

    #2
    Some toying with the clock function should do the trick.

    Comment

    Working...