2 #include <util/delay.h>
3 #include <avr/interrupt.h>
4 #include <avr/pgmspace.h>
12 inline void 7seg_pulse_clk(){
17 inline void 7seg_data_out(uint8_t val
){
24 inline void 7seg_select_digit(uint8_t digit
){
69 int 7seg_get_digit(uint8_t b
, uint8_t a
){
82 return out
| 7seg_digit2
[b
];
85 void 7seg_loop(){ //one frame
86 cycle
= get_digit(7seg_buf
[2],7seg_buf
[3]);
87 for(uint8_t i
= 0; i
<16; i
++){
96 cycle
= get_digit(7seg_buf
[0],7seg_buf
[1]);
97 for(uint8_t i
= 0; i
<16; i
++){