Shop OBEX P1 Docs P2 Docs Learn Events
Most LEDs with minimum # of IOs — Parallax Forums

Most LEDs with minimum # of IOs

BorisBoris Posts: 81
edited 2005-02-07 20:22 in BASIC Stamp
This PDF describes the most PIN effecient way to control LEDs, assuming that only one LED at a time needs to be ON. The instructions are for· PIC microcontroller but should work for BS also.
Just one question. Can BS's pins be set specifically as input or output?

http://ww1.microchip.com/downloads/en/AppNotes/91029a.pdf

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2005-02-07 20:22
    Yes, you either use the INPUT and OUTPUT statement for that, or the DIRs variable.

    The BS2 has a PIC 16C54 at its heart, and uses the PIC pins as its I/O drivers.
Sign In or Register to comment.