Shop OBEX P1 Docs P2 Docs Learn Events
Need one more port on on 2pe motherboard — Parallax Forums

Need one more port on on 2pe motherboard

rdieterrdieter Posts: 3
edited 2007-12-14 21:21 in BASIC Stamp
They say that Murphy's Law is the only immutable Law of the Universe. Along with that is "I just need one more port". I am using the MoBoStamp-pe motherboard with the·7Seg-DB on connector "B" and the Proto-DB on connector "A". I am already using:

· BtnUp··· PIN· 0
· BtnDwn· PIN· 1
· Spray··· PIN· 2
· Beep···· PIN· 3
· OutLft·· PIN· 8
· OutRgt· PIN· 9
· InLft···· PIN· 11
· InRgt·· ·PIN· 12

Of course, at the last minute I am told that they need one more output. I would prefer to use anything left on the A side, but I am open to any ideas on "B" that would not effect the 7 Segs operation.

Anyone have a suggestion?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-14 21:21
    You can encode the BtnUp and BtnDown signals using resistors so that they produce different voltages on a single pin when pressed. Then use the analog input facility of the GPIO3 firmware to determine which button (if any) was pressed. That will free up a pin for you.

    -Phil
Sign In or Register to comment.