Thread: Toggle?
View Single Post
  #6   Spotlight this post!  
Unread 03-11-2002, 08:03
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
Quote:
Originally posted by VanWEric
while it is possible to use toggle on the first bot, it really isnt all that useful. toggle only affects the output pins located on the stamp in the hands of the driver, and it has no effect on the stamp on the bot. since everything is communicated with serin and out, changing the state of the output pins dont do nuttin.
Not quite true. First, if you do a toggle on 1, 2, or 3, chances are everything will go horribly awry as these are the pins used to communicate withe the master uP. However, you CAN do a toggle on 7-15 to change the feedback LEDs. It has exactly the same effect as:

out8=1-out8


The advantage of Toggle is that it's a little easier to read and a little faster to type.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php