Shop OBEX P1 Docs P2 Docs Learn Events
7 Segments Display — Parallax Forums

7 Segments Display

donxdonx Posts: 1
edited 2005-04-12 11:22 in BASIC Stamp
Just playing with basic stamp 2 module, and I would like to know how I could use 4·7-segments displays on 1 module. I could use a extra breadboard. I could use 2, it worked tho, but there isn't enough room (pins) to give 2 others also the code.

Code for 2 displays:

X0 CON %00000000
X1 CON %00000000
XX CON %11111111
OUTL = %00000000 ' All off to start
OUTH = %00000000 ' All off to start
DIRL = %11111111 ' All LEDs must be outputs
DIRH = %11111111 ' All LEDs must be outputs
indexa VAR Byte ' 10 chars in message
indexb VAR Byte ' 10 chars in message
DO
FOR indexb = 0 TO 10 ' 10 chars in message
LOOKUP indexb, [noparse][[/noparse] X0, X1, XX ], OUTL
LOOKUP indexb, [noparse][[/noparse] X0, X1, XX ], OUTH
PAUSE 1
NEXT
LOOP

So I would like to know how I can use 4 displays, and how I should modify the code. Ty.

Comments

Sign In or Register to comment.