i just set up 2 displays ( 3 digit 7 segments ), and the displays seems to be blinkin ( i know they are suppose to blink but so fast that the human eye cannot detect it ).
I'm using the SevSeg Library and this is how my code looks:
void setup() {
byte numDigits = 3;
byte digitPins[] = {2, 3, 4};
byte segmentPins[] = {5, 6, 7, 8, 9, 10, 11, 12};
sevseg1.begin(COMMON_ANODE, numDigits, digitPins, segmentPins);
byte digitPins2[] = {14, 15, 16};
byte segmentPins2[] = {17, 18, 19, 20, 21, 22, 23, 24};
sevseg2.begin(COMMON_ANODE, numDigits, digitPins2, segmentPins2);
}
void loop() {
while(true){
sevseg1.setNumber(number,0);
sevseg2.setNumber(number,1);
sevseg1.refreshDisplay();
sevseg2.refreshDisplay();
}
}
I need to add 2 more 3 digits 7 segment displays so i was wondering what is it that is causing the blinking.
Im using Arduino Mega.