diff options
Diffstat (limited to 'apps/main_clock.h')
-rw-r--r-- | apps/main_clock.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/main_clock.h b/apps/main_clock.h new file mode 100644 index 0000000..d47e837 --- /dev/null +++ b/apps/main_clock.h @@ -0,0 +1,16 @@ +#ifndef __MAIN_CLOCK_H__ +#define __MAIN_CLOCK_H__ + +#include "pico/util/datetime.h" +#include "../oled/ss_oled.h" + +void time_as_str(char *buf, uint buf_size, const datetime_t *t); +void date_as_str(char *buf, uint buf_size, const datetime_t *t); +void show_datetime(SSOLED *oled); + +int main_clock_init(SSOLED *oled, char *data, uint data_size); +int main_clock_render(SSOLED *oled, char *data, uint data_size); +int main_clock_bgrefresh(SSOLED *oled, char *data, uint data_size); +int main_clock_destroy(SSOLED *oled, char *data, uint data_size); + +#endif
\ No newline at end of file |