Modify code for testing
This commit is contained in:
parent
ff3a404731
commit
b7660d347a
2
avr.c
2
avr.c
|
@ -36,6 +36,8 @@ init(void)
|
|||
TCCR1B |= _BV(WGM12);
|
||||
TCCR1B |= _BV(CS11) | _BV(CS10);
|
||||
TIMSK1 |= _BV(OCIE1A);
|
||||
|
||||
bit(PORTA, _BV(7), true);
|
||||
|
||||
sei();
|
||||
}
|
||||
|
|
BIN
driver.fzz
BIN
driver.fzz
Binary file not shown.
9
main.c
9
main.c
|
@ -115,7 +115,6 @@ draw()
|
|||
|
||||
|
||||
write_num(score_b, 2);
|
||||
write_num(score_a, 2);
|
||||
|
||||
if (state == SETUP) {
|
||||
write(setup_digits[2]);
|
||||
|
@ -138,7 +137,13 @@ draw()
|
|||
clk += abs(period_clock / 10) % 60;
|
||||
write_num(clk, 4);
|
||||
}
|
||||
|
||||
|
||||
write_num(score_a, 2);
|
||||
|
||||
write_num(jiffies % 10, 1);
|
||||
write_num(jiffies % 10, 1);
|
||||
|
||||
|
||||
latch();
|
||||
pulse();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue