use twi implementation by peterfleury and read rtc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user