16 lines
461 B
C
16 lines
461 B
C
#include <dio.h>
|
|
#include <display.h>
|
|
|
|
int main(void) {
|
|
display_t display = {
|
|
.reg = {
|
|
.output = { .ddr = &DDRB, .port = &PORTB, .pin = &PINB, .addr = 2 },
|
|
.shift_clock = { .ddr = &DDRB, .port = &PORTB, .pin = &PINB, .addr = 1 },
|
|
.latch_clock = { .ddr = &DDRB, .port = &PORTB, .pin = &PINB, .addr = 0 },
|
|
},
|
|
};
|
|
display_init(&display);
|
|
|
|
display_write_message(&display, "ready");
|
|
}
|