Shop OBEX P1 Docs P2 Docs Learn Events
12 blocks input reading — Parallax Forums

12 blocks input reading

pongmstr2pongmstr2 Posts: 16
edited 2010-07-28 21:22 in Propeller 1
so i downloaded 12blocks and went through all the tutorials and tried the help search to no avail. I am trying to read an input from a switch connected to pin 4 to actuate a relay on pin 5. any ideas or can someone point me to an example that shows how to input a high or low. Thank you, Henry.

Comments

  • HannoHanno Posts: 1,130
    edited 2010-07-27 19:44
    Hi Henry!
    You were looking for the "pin" block see attached for exactly what you need.
    Hanno

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Co-author of the official Propeller Guide- available at Amazon
    Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
    12Blocks, the block-based programming environment (thread here)
    and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
    126 x 185 - 4K
  • pongmstr2pongmstr2 Posts: 16
    edited 2010-07-28 05:28
    thank you soooo much..
  • HannoHanno Posts: 1,130
    edited 2010-07-28 21:22
    No problem! For fun, click on the "view pins"- you'll get a live representation of the pin states of your Propeller- as well as a "logic analyzer" graph of the pins activity over time.
    Hanno

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Co-author of the official Propeller Guide- available at Amazon
    Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
    12Blocks, the block-based programming environment (thread here)
    and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
Sign In or Register to comment.