Modify code for testing

This commit is contained in:
Neale Pickett 2013-07-14 07:51:30 -06:00
parent ff3a404731
commit b7660d347a
3 changed files with 9 additions and 2 deletions

2
avr.c
View File

@ -36,6 +36,8 @@ init(void)
TCCR1B |= _BV(WGM12);
TCCR1B |= _BV(CS11) | _BV(CS10);
TIMSK1 |= _BV(OCIE1A);
bit(PORTA, _BV(7), true);
sei();
}

Binary file not shown.

9
main.c
View File

@ -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();
}