Shop OBEX P1 Docs P2 Docs Learn Events
A question about shutting down the Stamp programmatically — Parallax Forums

A question about shutting down the Stamp programmatically

Kevin WoodKevin Wood Posts: 1,266
edited 2005-11-04 18:31 in BASIC Stamp
I'm have a HomeWork Board Rev. B, and what I'd like to do is write a program that shuts down and isolates the stamp as much as possible from the breadboard. So, if I'm testing a circuit that doesn't use the stamp, I want to set all of the pins to a common state, then use END to power off the stamp until I re-program.

My question is: what is the best state to set the pins - high/low/input/output? I'd like to make them as electrically isolated from the breadboard as possible programmatically.

Thanks.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-04 18:31
    Kevin,

    ·· Setting the pins to inputs would effectively isolate them...All you need to do is:

    DIRS = 0
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.