5x7 led display WORKING code attached
Jonathan
Posts: 1,023
Hi All,
Judging from the response to previous posts in this thread, I don't think there is much interest in scrolling LED signs. Nonetheless, since I managed to get it to work, I thought I'd post the code.
I am using a BS2p, and it is just fast enough for 2 digits. I might be able to *barely* make it work with three digits, I'll try when I get another display. I think I see how I can improve the speed of the code a little.
If anyone is interested in details of the project, let me know. My plan is to get another couple of the displays and try using an SX chip to drive it. That should be fast enough to use four digits and use the bicolor aspect.
While I wait for the new displays, I'm going to work on a VB based editor for graphics too.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
Judging from the response to previous posts in this thread, I don't think there is much interest in scrolling LED signs. Nonetheless, since I managed to get it to work, I thought I'd post the code.
I am using a BS2p, and it is just fast enough for 2 digits. I might be able to *barely* make it work with three digits, I'll try when I get another display. I think I see how I can improve the speed of the code a little.
If anyone is interested in details of the project, let me know. My plan is to get another couple of the displays and try using an SX chip to drive it. That should be fast enough to use four digits and use the bicolor aspect.
While I wait for the new displays, I'm going to work on a VB based editor for graphics too.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
Comments
http://www.parallax.com/detail.asp?product_id=28099
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
Available now... SX-Video OSD module $59.95 www.sxvm.com
"I'm a man, but I can change, if I have to, I guess"
Red Green
·
Funny about my post above, while it didn't generate any intrest on the forums, I got a number of personal e-mails about it.
I have since the above post got a very smooth scrolling system going with the 2p, and it could easily handle four digits. My initial system was very clumsy, but it works well now.
As I said below, my intention is to make it work with the SX, to reduce cost to students (this is a high school project). However, my SX programmer is having an issue, and I haven't had time to sort it out.
The latest code I have is attached. I'm pretty sure that even a BS2 is fast enough, but it does not have the native I2C commands. I would order the SPI version of the driver, MAX7952 for the BS2. That way you can just use the SHIFTOUT command.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
Thanks much for the kind offer. However, I assume the badges you are talking about are assembled. I like to make the students build the thing, it keeps them quiet longer ;-0. Also, I like the four digits, makes it easier to read. The total cost of the project is less than US$20.
Like I said, I am going to port this over to an SX chip. Funny tho it may seem, since I am new to the SX I am prototyping with a PIC. Hehe, that is the opposite of my normal procedure!! Anyway, I have it all working with a PIC, and you can either load a font or message file using Hyperterm or similar. The sign can hold 33 hours or so of messages!! I think I went overboard ;-0
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot