Files

copied

There are no circuits or boards in this repository.

Last update 6 years 3 months by Petro Zhuk
Filessoftwareclock
..
Debug
I2C.c
I2c.h
Menu.h
brightness_senor.c
brightness_senor.h
clock.componentinfo.xml
clock.cproj
control.c
control.h
crc8.c
crc8.h
delay.c
delay.h
display.c
display.h
ds1307.c
ds1307.h
ds18x20.c
ds18x20.h
encoder.c
encoder.h
ledLight.c
ledLight.h
main.c
menu.c
onewire.c
onewire.h
wa2811.asm
ws2811.s
ds1307.h
/* * ds1307.h * * Created on: 28.10.2011 * Author: bars */ #ifndef DS1307_H_ #define DS1307_H_ #include <stdint.h> void rtc_init(unsigned char rs, unsigned char sqwe, unsigned char out); void rtc_get_time(unsigned char *hour, unsigned char *min, unsigned char *sec); void rtc_get_date(unsigned char *date, unsigned char *month, unsigned char *year); void rtc_set_time(unsigned char hour, unsigned char min, unsigned char sec); void rtc_set_date(unsigned char date, unsigned char month, unsigned char year); unsigned char rtc_read(unsigned char address); void rtc_write(unsigned char address,unsigned char data); unsigned char bcd (unsigned char data); void rtc_init_sqw(void); uint8_t rtc_check_sqw(void); #endif /* DS1307_H_ */
Report a bug