fancy
This commit is contained in:
parent
1d2187c8d9
commit
7e5a1470aa
3
main.c
3
main.c
|
@ -26,8 +26,7 @@ void start_timer() {
|
||||||
// is triggered whenever timer 1 (16 bit) overflows.
|
// is triggered whenever timer 1 (16 bit) overflows.
|
||||||
ISR(TIMER1_OVF_vect) {
|
ISR(TIMER1_OVF_vect) {
|
||||||
TCNT1 = tick_timer_start;
|
TCNT1 = tick_timer_start;
|
||||||
if (PORTB & 0b10000000) PORTB &= 0b01111111;
|
PORTB ^= 0b10000000;
|
||||||
else PORTB |= 0b10000000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
Loading…
Reference in a new issue