#include<SevSeg.h>
SevSeg sevseg;
void setup(){
byte numdigits=4;
byte digits[]={13,12,11,10};
byte segmentpins[]={9,8,7,6,5,4,3,2};
bool resistorsOnSegments = false;
bool leadingZeros=true;
bool disableDecPoints=false;
bool updateWithDelays=false;
byte hardwareConfig = COMMON_ANODE;
sevseg.begin(hardwareConfig,numdigits,digits,segmentpins,resistorsOnSegments,leadingZeros,updateWithDelays,disableDecPoints);
sevseg.setBrightness(90);
}
void loop(){
static unsigned long timer = millis();
static int deciSeconds=0;
if(millis()-timer>100){
timer+=100;
deciSeconds++;
if (deciSeconds==10000){
deciSeconds=0;
}
sevseg.setNumber(deciSeconds,1);
}
sevseg.refreshDisplay();
}