Thread: Switches...
View Single Post
  #2   Spotlight this post!  
Unread 10-02-2004, 18:20
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Switches...

just hook them up to a digital input pin, and use and if statement (or multiple if-elses) to select the code to run - you robot can read the input pins any time when it is on, including disabled mode.

you could even wire the switch up to one of the joystick ports on the OI and use that to switch the program - disabled mode allows input from the OI.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)