Program check? Plz help
·have a robot with 2 switches hooked up into ports 1 and 2 on the BOE.
I am using Variables
btn1
btn2
and this coding for the checking of the switches
BUTTON 1,0,255,250,btn1,0,noswitch for switch 1
BUTTON 2,0,255,250,btn2,0,noswitch for switch 2
it does not recognize either of them when I try them
any advice?![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
Post Edited (Benbo231) : 1/17/2009 1:46:55 AM GMT
I am using Variables
btn1
btn2
and this coding for the checking of the switches
BUTTON 1,0,255,250,btn1,0,noswitch for switch 1
BUTTON 2,0,255,250,btn2,0,noswitch for switch 2
it does not recognize either of them when I try them
any advice?
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
Post Edited (Benbo231) : 1/17/2009 1:46:55 AM GMT
Comments
but it only hits one reaction sequence
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
IF (IN1 = 1) AND/OR (IN2 = 1) THEN
GOSUB Routines here
ELSE
ENDIF
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!