#include <SevSeg.h>
SevSeg display7;
void setup() {
byte numDigitos = 2;
byte pinDigitos[] = {2, 3};
byte segmentos[] = {6, 7, 8, 9, 10, 11, 12, 13};
bool resistorsOnSegments = false; // 'false' indica que las resistencias están en los pines de dígitos
byte hardwareConfig = COMMON_ANODE; // See README.md for options
bool updateWithDelays = false; // Default 'false' is Recommended
bool leadingZeros = true; // Use 'true' if you'd like to keep the leading zeros
bool disableDecPoint = false; // Use 'true' if your decimal point doesn't exist or isn't connected
display7.begin(hardwareConfig, numDigitos, pinDigitos, segmentos,
resistorsOnSegments, updateWithDelays, leadingZeros,
disableDecPoint);
display7.setBrightness(90);
}
void loop() {
int contador = (millis() / 1000) % 100;
display7.setNumber(contador);
display7.refreshDisplay();
}