SevSeg library all the lights lighting up

hello there, i am working on a simple seven segment display with 4 digits. i am using the sevseg library version 3.4.0. i am trying to print a 4 digit number with no decimal. but when i upload it to my arduino, every single segment lights up. is it a wiring error? when i unplug every single wire one at a time, the correct part of the segment display turns off. my code is

#include <SevSeg.h>
SevSeg sevseg;

void setup() {
// put your setup code here, to run once:
byte numDigits = 4;
byte digitPins[] = {3, 4, 5, 6};
byte segPins[] = {8, 9, 10, 11, 12, 21, 22, 23};

bool resistorsOnSegments = false;
bool updateWithDelaysIn = false;
byte hardwareConfig = COMMON_CATHODE;
sevseg.begin(hardwareConfig, numDigits, digitPins, segPins, resistorsOnSegments);
sevseg.setBrightness(90);
}

void loop() {
// put your main code here, to run repeatedly:
sevseg.setNumber(1111, 3);
}

this also happened with the single digi display. are my displays bad? or is it a library issue?
thank you so much

PS, I KNOW FOR A FACT ITS common cathode.

Look at the examples. You'll see that you have to call a certain function in loop() to refresh the display. :wink: