#include <SevSeg.h>
SevSeg sevseg;
void setup(){
byte Numdigits=5;
byte comunes[]={9,10,11,12,13};
byte segmentos[]={2,3,4,5,6,7,8};
byte tipo=COMMON_CATHODE;
sevseg.begin(tipo, Numdigits, comunes, segmentos);
Serial.begin(9600);
}
void loop(){
static unsigned long tiempoejec=millis()+1000;
static int contador=0;
if(millis()>=tiempoejec){
tiempoejec+=1000;
//Serial.println(contador);
contador++;
if(contador==100000){
contador=0;
}
sevseg.setNumber(contador,0);
}
sevseg.refreshDisplay();
}