#include "SevSeg.h"
SevSeg sevseg;
byte numDigits=1;
byte digitPins[]={};
byte segmentPins[]={6,5,2,3,4,7,8,9};
bool resistorsOnsegments= true;
byte hardwareConfig = COMMON_CATHODE;
void setup()
{
sevseg.begin(hardwareConfig,numDigits,digitPins,segmentPins,resistorsOnsegments);
sevseg.setBrightness(90);
}
void loop()
{
for(int i=0;i<10;i++)
{
sevseg.setNumber(i);
delay(1000);
sevseg.refreshDisplay();
}
}