From 0a60a76afcf938c6885395fb16b6c168179921e5 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 1 Apr 2012 00:22:16 +0200 Subject: adapted to ATtiny26 / sublab setup --- clock.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'clock.c') diff --git a/clock.c b/clock.c index e6fba14..f40c6aa 100644 --- a/clock.c +++ b/clock.c @@ -9,39 +9,12 @@ #include "main.h" #include "clock.h" -#include "max7219.h" #include "timebase.h" #include "dcf77.h" struct time data time; -void display_date( void ) -{ - displaymem[7] = time.day / 10; - displaymem[6] = time.day % 10 | ATTRIB_DP; - displaymem[5] = time.month / 10; - displaymem[4] = time.month % 10 | ATTRIB_DP; - displaymem[3] = 2; - displaymem[2] = 0; - displaymem[1] = time.year / 10; - displaymem[0] = time.year % 10; -} - - -void display_time(void) -{ - displaymem[7] = time.hour / 10; - displaymem[6] = time.hour % 10; - - displaymem[4] = time.minute / 10; - displaymem[3] = time.minute % 10; - - displaymem[1] = time.second / 10; - displaymem[0] = time.second % 10; -} - - u8 code MDAYS[] = { 29, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; -- cgit v1.2.1