I'm very new to Arduino and this is my first project, so I may misunderstand something simple.
As a hardware I'm using 4 MAX7219 connected to Arduino UNO and a single diod for tests.
As a software I have Waoyda's LedControl 1.06 for MAX72XX.
It seems, I'm completely missing something, because with the code below, the diod is never lit, regardless on matrix position it is connected to.
#include "LedControl.h"
LedControl lc=LedControl(12,11,10,4);
void setup() {
int devices=lc.getDeviceCount();
for(int address=0;address<devices;address++) {
lc.shutdown(address,false);
lc.setIntensity(address,8)
lc.clearDisplay(address);
}
}
void loop() {
int devices=lc.getDeviceCount();
for(int row=0;row<8;row++) {
for(int col=0;col<8;col++) {
for(int address=0;address<devices;address++) {
lc.setLed(address,row,col,true);
}
}
}
}
UPD: scheme added.