Salve a tutti,
Come da titolo, ho collegato 10 display a 7 segmenti a 2 max7219 (il secondo in cascata al primo DOUT--->DIN) e caricando uno sketch di test:
//We always have to include the library
#include "LedControl.h"/*
Now we need a LedControl to work with.
***** These pin numbers will probably not work with your hardware *****
pin 12 is connected to the DataIn
pin 11 is connected to the CLK
pin 10 is connected to LOAD
***** Please set the number of devices you have *****
But the maximum default of 8 MAX72XX will also work.
*/
LedControl lc=LedControl(12,11,10,[tt][b]2[/b][/tt]);/* we always wait a bit between updates of the display */
unsigned long delaytime=20;/*
This time we have more than one device.
But all of them have to be initialized
individually.
/
void setup() {
//we have already set the number of devices when we created the LedControl
int devices=lc.getDeviceCount();
//we have to init all devices in a loop
for(int address=0;address<devices;address++) {
/The MAX72XX is in power-saving mode on startup/
lc.shutdown(address,false);
/ Set the brightness to a medium values /
lc.setIntensity(address,8);
/ and clear the display */
lc.clearDisplay(address);
}
}void loop() {
//read the number cascaded devices
int devices=lc.getDeviceCount();//we have to init all devices in a loop
for(int row=0;row<
** **10;row++** **
) {
for(int col=0;col<
** **10;col++** **
) {
for(int address=0;address<devices;address++) {
delay(delaytime);
lc.setLed(address,row,col,true);
delay(delaytime);
lc.setLed(address,row,col,false);
}
}
}
}
Il software fa illuminare tutti i segmenti dei display collegati in scansione, ma il problema lo riscontro negli ultimi due display (il nono e il decimo e per l'appunto, quelli collegati al 2° integrato) che mi mostra in maniera speculare, la stessa sequenza di accensione del 1° display collegato al primo integrato.Le parti marcate sono quelle che ho ritoccato per adattare il software a leggere gli ultimi due display.
Un salutone a tutti e grazie eventualmente a chi mi darà qualche dritta.

