Thread: Timed Button
View Single Post
  #3   Spotlight this post!  
Unread 17-03-2009, 22:48
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Timed Button

In addition to what Greg said, you'll want to keep track of the last button value so you don't do it over and over again. To do this, use a shift register and wire in the button value. Use one of the Boolean operators to make sure you execute the code only when the button is true and the last button value is false.
__________________
Twitter Profile
Reply With Quote