use twi implementation by peterfleury and read rtc

This commit is contained in:
2019-09-21 18:41:02 +02:00
parent be90944b2f
commit 80ccc8e23c
7 changed files with 406 additions and 195 deletions

View File

@@ -1,15 +1,8 @@
#ifndef _DS3231_h
#define _DS3231_h
#ifndef _DS3231_H
#define _DS3231_H
#define DS3231_ADDRESS 0b1101000
#include <avr/io.h>
#define REG_SECONDS 0x00 //Sekunden Register
void DS3231_init(void);
int DS3231_seconds(void);
uint32_t DS3231_read(void);
#endif