// https://wokwi.com/projects/391351639213577217
// https://forum.arduino.cc/t/2-digit-display-with-sevseg-library-a-segment-staying-on/1230896

# include "SevSeg.h"

SevSeg display;

byte numDigits = 2;
byte digitPins[] = {2, 3, 4};
byte segmentPins[] = {6, 7, 8, 9, 10, 11, 12};
bool resistorsOnSegments = false;
byte hardwareConfig = COMMON_CATHODE;
bool updateWithDelays = false;
bool leadingZeros = false;

bool disableDecPoint = false;  // change to true for this hardware!

void setup() {
  display.begin(hardwareConfig, numDigits, digitPins, segmentPins, resistorsOnSegments, updateWithDelays, leadingZeros, disableDecPoint);
  display.setBrightness(100);

  display.setNumber(44);
}

void loop() 
{
  display.refreshDisplay();
  delay(333);
}