diff --git a/main.c b/main.c index 1e65c69..7b5c1c5 100644 --- a/main.c +++ b/main.c @@ -17,17 +17,27 @@ #include "spi.h" #include "ledcontroller.h" #include "rtc.h" +#include int main(void) { timer_init(); - rtc_init(0); - spi_slave_init(); + //rtc_init(0); + //spi_slave_init(); ledcontroller_init(); sei(); - lcd_init(); + //lcd_init(); + DDRC |= (1< F_CPU = 20Mhz // ==> 20Mhz / 256 = 78.125 kHz - // ==> let timer count to 78 to get (almost) 1kHz frequency + // ==> let timer count to 77 to get (almost) 1kHz frequency // therefore: // - Set Timer/Counter0 prescaler to 256 ==> (1< (1<