|One MAX7219 soldered and connected, running a random worm program. The second driver out in front isn't connected yet.|
|A second wired to the first.|
|Wiring diagram for daisy chain|
Wiring diagram comes from this forum.
Programming Daisy Chained Drivers
In the program, to add a second driver, the following statements have to be modified:
- When you create the object, the last argument is the number of drivers, so change to 2. LedControl lc = LedControl(12, 11, 10, 2);
- Repeat all setup statements for the second driver, the first argument of each is which driver in an array.
lc.shutdown(0, false); lc.shutdown(1, false); lc.setIntensity(0, 4); lc.setIntensity(1, 4); lc.clearDisplay(0); lc.clearDisplay(1);
- Finally, when addressing which leds to turn on/off, the first argument is which LED matrix in an array they belong to. To turn on the upper left LED on the first matrix is lc.setLed(0, 0, 0, true); and for the same position on the second is lc.setLed(1, 0,0, true);
More to come! I still have to solder the second one on.
Woo-hoo! All done!