Thread: Toggle?
View Single Post
  #2   Spotlight this post!  
Unread 01-11-2002, 15:00
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
It acually is used in FIRST. If you look through the default code, you'll see "Toggle 7." This is what makes the Basic Run light blink so fast.

About the only thing we could use it for would be reversing one of the LED outputs, as those are the only things connected directly to I/O pins. Anyway, if you do find a use for it, the syntax is just

Toggle X

where X is the pin you want to change. For FIRST, this can only be 7-15, with 7 being the basic run light and 8-15 being the LED outputs that are visible on the OI.

Also, as long as you're asking valid questions, nobody is going to mind you posting a lot. Asking questions is good--it helps you learn and it helps other people who visit this site sometime later.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php