So i'm using MAX7219 to control a VQE 23 seven segment led indicator. Using this scheme: Arduino Playground - MAX72XXHardware RSet is a 10k resistor. I have a really weird problem - the digit lights up for a less then a second, i can barely see it, and then it goes away. I know this is a software problem, probably something really stupid, but i couldn't find a way to fix it on google. Here is the code i am using
#include <LedControl.h>
// inputs: DIN pin, CLK pin, LOAD pin. number of chips
LedControl lc=LedControl(10,11,12,1); // lc is our object
// the zero refers to the MAX7219 number, it is zero for 1 chip
lc.shutdown(0,false);// turn off power saving, enables display
lc.setIntensity(0,15);// sets brightness (0~15 possible values)
lc.clearDisplay(0);// clear screen
}
void loop()
{
lc.setDigit(0, 0, 3, false);
}