Shop OBEX P1 Docs P2 Docs Learn Events
"stop" — Parallax Forums

"stop"

DestroyerXDestroyerX Posts: 34
edited 2005-03-01 01:29 in BASIC Stamp
In PBASIC 2.5, when the STOP command is used, all of the I/O lines turn off and they can not be turned back on, right? Is there a command in PBASIC 2.5 that turns off all I/O lines but doesn't turn them off permanently? (I want to be able to turn the I/O lines on with another command later).

Thanks,

Jason

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Unreal tournament 2004 rox

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-03-01 01:29
    STOP simply halts the program, it does not affect the IO pins. You could make a copy of OUTS, suspend your program (you can't with STOP -- there is no way out of it short of a reset), then restore OUTS with your saved copy.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
Sign In or Register to comment.