Shop OBEX P1 Docs P2 Docs Learn Events
BS2P Reset — Parallax Forums

BS2P Reset

ShanShan Posts: 6
edited 2007-12-28 02:04 in BASIC Stamp
I want to use the reset button of the BS2P to skip some portion of the code. i don't know how to call the Reset command.
Whenever i press the reset button i want to skip some portion of the code which is at the starting of the full code.
Can you help me.......... sad.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-28 02:04
    You cannot use the reset button or the reset circuitry that way. The reset operation clears all the variables and always starts the program over from the very beginning. You will need to attach some other button or switch to a spare I/O pin and add statements to your program to check this switch's setting and act accordingly. There should be some examples of how to wire up a switch or pushbutton and how to test its value in the Parallax Basic manual and the What's a Microcontroller? tutorial. If you don't have these, they can be downloaded from Parallax's website. Look at the BUTTON and INPUT statements.
Sign In or Register to comment.