Shop OBEX P1 Docs P2 Docs Learn Events
IR Detecting to execute alterate movements — Parallax Forums

IR Detecting to execute alterate movements

Tim UTim U Posts: 9
edited 2009-10-28 14:00 in BASIC Stamp
I am using a BS2 with a single IR Detector in a boe-bot.

What I am trying to do is to make the Boe-Bot execute movements (right turn & Left Turn)·when the IR Detector sees a signal from a hand held remote control.
I want to alternate the movements, however I don't know how to write the PBasic code to tell the difference between the first button press and the second button press and·how can I tell the stamp the 3rd button press·should act like the first.

Any ideas???· I think is a matter ov naming a variable and incrementing it when the button is pressed.

Thanks
Tim

Comments

Sign In or Register to comment.