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