diff --git a/main.c b/main.c index 4a472ec..8f5dde2 100644 --- a/main.c +++ b/main.c @@ -2,6 +2,7 @@ #include "usart.h" #include "analogin.h" #include "configuration.h" +#include "analogout.h" #include #include #include @@ -17,7 +18,6 @@ on_channel_measured(unsigned char channel measurement_complete = 1; channel_measured = channel; value_measured = value; - PORTB ^= _BV(PB2); } @@ -30,9 +30,7 @@ int main(void) time_init(); usart_init(); analogin_init(); - - DDRB |= _BV(PB1); - DDRB |= _BV(PB2); + analogout_init(); while(1) { @@ -75,8 +73,6 @@ int main(void) { usart_putc('\n'); } - PORTB ^= _BV(PB1); - } }