From fe3055f15a6582181c1fc6f22c3f6275febe057d Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Wed, 12 Mar 2014 17:07:18 +0100 Subject: [PATCH] test leds works already --- main.c | 16 +++++++++++++--- rgbyteclock.c | 13 +++++++------ timer.c | 9 +++++---- 3 files changed, 25 insertions(+), 13 deletions(-) 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<