Shop OBEX P1 Docs P2 Docs Learn Events
Code Question — Parallax Forums

Code Question

ArchiverArchiver Posts: 46,084
edited 2003-05-23 17:45 in General Discussion
Hey, I just got my bs2e and I am trying to hook up bumper switches to
it ( Ihave a nextstep carrier board from lynxmotion). I have the
switch hooked up to pin 5 of the stamp and am trying to read it using
the following code " if in5=0 then program1". My stamp will not read
the swtich. I wanted to see the status of the pin so I wrote a
program to return the status of the pin. The pin returned a 1. The
only way I can get the bumper to work is by using the button
command. I have looked at other programs for the nextstep and bs2
and they all use teh same code I have "if in5 then ...". What
gives? By the way the pin is not floating as I have ground and I/O
hooked up to the switch. I am new at this and any help would be
appreciated. Thanx.
Sign In or Register to comment.