Shop OBEX P1 Docs P2 Docs Learn Events
PBASIC- how to assign pins on the microprocessor to variables. — Parallax Forums

PBASIC- how to assign pins on the microprocessor to variables.

gruxergruxer Posts: 1
edited 2009-09-24 16:44 in BASIC Stamp
Hey everyone im novice if it comes to PBASIC so there is a novice-like question:
Can you assign outputs and inputs to variables?
example:

output 0
x var bit
x=out0

main:
x=0
pause 500
x=1
pause 500
goto main


is it possible? if so, how to do it? i apreceate all your help thank you.

Post Edited (gruxer) : 9/29/2009 7:08:42 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-09-24 02:05
    1) You've posted a question about Parallax Stamps in the Parallax Propeller forum. Please post your message in the proper forum.

    2) You've left out a subject. That's very important if you want to get help. It lets people know what you want. You can always add a subject if you started the thread. Use the pencil icon in the upper righthand corner of your initial message

    3) Regarding your initial question ... Yes. Read the Stamp Manual starting on page 81.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-09-24 16:44
    This thread is being moved from the Propeller Forum to the BASIC Stamp Forum since it is off topic in the original forum. The original poster should add a descriptive subject as requested in the previous message.

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

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
Sign In or Register to comment.