Shop OBEX P1 Docs P2 Docs Learn Events
Meaning of "IN5"? — Parallax Forums

Meaning of "IN5"?

Vincenzo1309Vincenzo1309 Posts: 76
edited 2009-09-29 13:39 in Learn with BlocklyProp
Dear all,

I am now working on a project using the Bluetooth embedded transceiver. I am connecting my computer using a Bluetooth dongle to the transceiver.

I keyed in the following command in my program to check if there is any Bluetooth connection between the dongle and the transceiver

Do until IN5 = 1 : Loop

So if there is a connection, the program will proceed to the next command, else it will always be in a loop.

I know the meaning of the number 5, since pin 5 is the status pin of the Bluetooth transceiver.
But what is IN??

Kindly advise...

Thanks and Regards,

Comments

  • Martin HebelMartin Hebel Posts: 1,239
    edited 2009-09-29 13:08
    In = INPUT. The pins can act as inputs or outputs. To control something (an output), HIGH/LOW pin is normally used, but also
    DIR3 = 1
    OUT3 = 1
    Could also be used - DIR, make an output
    OUT3, set output 3 to high

    IN5 simply returns the state when it is an input, if input is high or low.

    -Martin
  • Vincenzo1309Vincenzo1309 Posts: 76
    edited 2009-09-29 13:39
    Hi Martin,

    Thanks alot for clarifying...

    Regards
Sign In or Register to comment.