From b47b3e591596f31604da27df7725aafa7c2784cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Wed, 10 Apr 2019 11:45:36 +0200 Subject: [PATCH] starting the driver for the charge pump --- main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); - } }