Controlling 5x7 led arrays
halfblinddado
Posts: 59
I want to control 2 5x7 led arrays. I have found a way to do it using 2 HC138 3 to 8 line decoders. I can program letters numbers animation and so on with 16 bit numbers. (See schematic and code attached).
a_right:
LEDs = 0
LEDs = %0000000000001110
LEDs = 0
LEDs = %0010010000010001
LEDs = 0
LEDs = %0100100000010001
LEDs = 0
LEDs = %0110110000011111
LEDs = 0
LEDs = %1001000000010001
LEDs = 0
LEDs = %1011010000010001
LEDs = 0
LEDs = %1101100000010001
RETURN
The first 6 bits control the decoders(which control·the rows)·and the second 10 bits control the columns.
As you can guess this takes up alot of program space and the The ASCII characters A-Z won't fit on the basic stamp.
My question is: Is there a good way to compress the data?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
a_right:
LEDs = 0
LEDs = %0000000000001110
LEDs = 0
LEDs = %0010010000010001
LEDs = 0
LEDs = %0100100000010001
LEDs = 0
LEDs = %0110110000011111
LEDs = 0
LEDs = %1001000000010001
LEDs = 0
LEDs = %1011010000010001
LEDs = 0
LEDs = %1101100000010001
RETURN
The first 6 bits control the decoders(which control·the rows)·and the second 10 bits control the columns.
As you can guess this takes up alot of program space and the The ASCII characters A-Z won't fit on the basic stamp.
My question is: Is there a good way to compress the data?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
DXF
29K
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
DATA Word "AB",Word "BC", etc...
Beware that each item has 2 bytes (2 address positions) when you READ them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
http://forums.parallax.com/showthread.php?p=561144
You can also use the MAX7219. Do a search for MAX7219 in this forum area.
You will definately need external hardware chips to control this. This is probably a better project for a SX chip or Propellor.