#include "SevSeg.h"
SevSeg sevseg; // Create an instance of the SevSeg class
void setup() {
byte numDigits = 1; // Number of digits in the display
byte digitPins[] = {2}; // Pins for the common cathode (negative) side of the display
byte segmentPins[] = {3, 4, 5, 6, 7, 8, 9, 10}; // Pins for the segments a, b, c, d, e, f, g, and DP
sevseg.begin(COMMON_CATHODE, numDigits, digitPins, segmentPins);
}
void loop() {
for (int i = 1; i <= 9; ++i) {
sevseg.setNumber(i);
sevseg.refreshDisplay();
delay(1000); // Display each number for 1 second
}
}