User avatar
bitbank
Posts: 235
Joined: Sat Nov 07, 2015 8:01 am
Location: Sarasota, Florida
Contact: Website

C library for MAX7219 LED Matrix controllers

Sun Mar 11, 2018 8:40 pm

I bought one of those 4-in-1 (8 rows x 32 columns) LED kits that consists of 4 8x8 blocks linked together and controlled by Maxim's MAX7219 controllers. I read the data sheet and wrote some C code to make it easy to control them:

https://github.com/bitbank2/MAX7219

I tested it on my Orange Pi Lite, but it will work the same on the RPI boards:

https://photos.app.goo.gl/cPCdWsNtdk3NkWvS2
The fastest code is none at all :)

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 4419
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: C library for MAX7219 LED Matrix controllers

Sun Mar 11, 2018 9:14 pm

bitbank wrote:
Sun Mar 11, 2018 8:40 pm
I bought one of those 4-in-1 (8 rows x 32 columns) LED kits that consists of 4 8x8 blocks linked together and controlled by Maxim's MAX7219 controllers. I read the data sheet and wrote some C code to make it easy to control them:
https://github.com/bitbank2/MAX7219
I tested it on my Orange Pi Lite, but it will work the same on the RPI boards:
https://photos.app.goo.gl/cPCdWsNtdk3NkWvS2
FWIW & OOC you may find my 'C' demode code of interest, if only to "compare approaches":
http://www.cpmspectrepi.uk/raspberry_pi ... edx_demo.c (NB: I'm revising/improving the demo's at the moment so the "snapshot"** available is somewhat out-of-date)
Pictures of "CascadedSelfTest" and one of the "CascadedFontTests":
http://www.cpmspectrepi.uk/raspberry_pi ... _4-Modules
You may also find this thread (and the older thread it refers to) of interest: viewtopic.php?f=44&t=207412
Trev.
** currently, for all of the various demo's etc. here: http://www.cpmspectrepi.uk/raspberry_pi ... 22_tarball
Still running Raspbian Jessie on some older Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) but Stretch on my P3B+, P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest