Please help me with BS2 code for school robot project. Pic and code included!!!!
Tony_tsi
Posts: 98
I am building a robot for school. I do not use basic stamp very often and I need help with a select...case statement. The select statement needs to select inputs 9-15. The code is very simple. I need a line to replace ( SELECT IN9-IN15 )
The code for the robot is in the link below.
code for robot.bs2
The code for the robot is in the link below.
code for robot.bs2
Comments
This takes all 16 input bits as a word, and shifts it right by 9 positions, leaving bits 15..9 in positions 6..0.
But even then, I'm not sure that's what you want. Pins 15..9 represent seven pins, but your conditions use only six.
-Phil
http://www.parallax.com/Store/Sensors/ColorLight/tabid/175/CategoryID/50/List/0/SortField/0/Level/a/ProductID/729/Default.aspx