diff options
author | David Lamparter <equinox@diac24.net> | 2012-04-01 00:22:16 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-04-01 00:22:16 +0200 |
commit | 0a60a76afcf938c6885395fb16b6c168179921e5 (patch) | |
tree | 868d844830a6e7e588dde90faf144b78366b50c8 /clock.c | |
parent | 75a61c57fb0402f777bfa828dd71818a97ed54a4 (diff) |
adapted to ATtiny26 / sublab setup
Diffstat (limited to 'clock.c')
-rw-r--r-- | clock.c | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -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 };
|