ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
|
Go to the source code of this file.
Functions | |
MEMSPACE uint8_t | BINtoBCD (uint8_t data) |
Convert number >= 0 and <= 99 to BCD. More... | |
MEMSPACE uint8_t | BCDtoBIN (uint8_t data) |
Convert two "digit" BCD number to binary. More... | |
MEMSPACE int8_t | rtc_run_test () |
Check if the DS1307 device is running. More... | |
MEMSPACE int | rtc_run (int run) |
Set DS1307 run state. More... | |
MEMSPACE uint8_t | rtc_init (int force, time_t seconds) |
Initialize DS1307 rtc if not initialied - or if forced. More... | |
MEMSPACE uint8_t | rtc_write (tm_t *t) |
Set DS1307 RTC from POSIX struct tm * structure. More... | |
MEMSPACE uint8_t | rtc_read (tm_t *t) |
Read DS1307 RTC into POSIX struct tm * structure. More... | |
Variables | |
int | rtc_ok = 0 |
Convert two "digit" BCD number to binary.
[in] | data | BCD number.
|
Definition at line 48 of file rtc.c.
Referenced by rtc_read().
Convert number >= 0 and <= 99 to BCD.
[in] | data | number to convert. |
Definition at line 36 of file rtc.c.
Referenced by rtc_write().
Initialize DS1307 rtc if not initialied - or if forced.
[in] | force | force initialiation flag.
|
[in] | seconds | POSIX EPOCH time in seconds. |
Definition at line 121 of file rtc.c.
Referenced by initialize_clock(), and setdate_r().
Read DS1307 RTC into POSIX struct tm * structure.
[out] | t | struct tm * POSIX time returned. |
Definition at line 238 of file rtc.c.
Referenced by display_clock(), initialize_clock(), and rtc_read().
MEMSPACE int rtc_run | ( | int | run | ) |
Set DS1307 run state.
[in] | run | state.
|
Definition at line 87 of file rtc.c.
Referenced by rtc_init().
Set DS1307 RTC from POSIX struct tm * structure.
[in] | t | POSIX struct tm * time to set. |
Definition at line 189 of file rtc.c.
Referenced by rtc_init().
int rtc_ok = 0 |
Definition at line 25 of file rtc.c.
Referenced by rtc_init().