Shop OBEX P1 Docs P2 Docs Learn Events
please help — Parallax Forums

please help

basilbs2basilbs2 Posts: 9
edited 2005-01-10 02:11 in BASIC Stamp
I have a simple question : How can I use the same pin on the BS2 as both input and output? I lost·my BS2 book . thanks

Comments

  • Jim McCorisonJim McCorison Posts: 359
    edited 2005-01-10 00:08
    The short, quick, and easy answer is:

    INPUT pin_number
    OUTPUT pin_number

    You can download a new book in pdf form for free. Just check Parallaz's download site.

    Jim
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-01-10 02:11
    There's also the online help file...Built right into the editor.

    But, using a pin for both requires some caution...If you make it an output, you'd better not have another output tied directly into it.· Best thing you can do is put a small resistor between the pin and your other circuitry.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Knight Designs
    324 West Main Street
    P.O. Box 97
    Montour Falls, NY 14865
    (607) 535-6777

    Business Page:·· http://www.knightdesigns.com
    Personal Page:··· http://www.lightlink.com/dream/chris
    Designs Page:··· http://www.lightlink.com/dream/designs
    ·
Sign In or Register to comment.