#include "seven_segments.h"
#include "switch.h"
struct SevenSegment segmentF{
(uint8_t *)0x30, // ddir
(uint8_t *)0x31, // data output
0xFF
};
struct Switch switchesK{
(uint8_t *)0x107, // ddir
(uint8_t *)0x106, // data input
0xFF
};
void setup() {
// put your setup code here, to run once:
init_seven_segment(&segmentF);
init_switches(&switchesK);
}
void loop() {
// put your main code here, to run repeatedly:
uint8_t number = switch_no(&switchesK);
display_screen(&segmentF, number);
}