View Single Post
  #1   Spotlight this post!  
Unread 13-02-2010, 13:43
Team1710's Avatar
Team1710 Team1710 is offline
Registered User
FRC #1710
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Kansas City
Posts: 95
Team1710 is an unknown quantity at this point
Toggle through button?

We are having some trouble with storing variables. We would like to create some code that when you press a button and then release the button, we can toggle a t/f or change a variable. For example, switch between the numbers 1, 2, and 3 by hitting a button. The problem we've run into is getting the number to stay once the button has been released. As soon as the button goes back to false, the toggle goes back to default...
__________________