#include "seven_segments.h"
#define NUMBERS 9
#define WAIT 200000
struct SevenSegment ss1{
0x30,
0x31,
4,
0xFF
};
void setup() {
// put your setup code here, to run once:
init_seven_segments(&ss1);
}
void loop() {
// put your main code here, to run repeatedly:
volatile uint8_t num = 0;
volatile uint32_t wait = 0;
for (num = 0; num <= NUMBERS; num++) {
display(&ss1, num);
for (wait = 0; wait < WAIT; wait++);
}
}