diff options
Diffstat (limited to 'apps/main_clock.hpp')
-rw-r--r-- | apps/main_clock.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/main_clock.hpp b/apps/main_clock.hpp new file mode 100644 index 0000000..70d9755 --- /dev/null +++ b/apps/main_clock.hpp @@ -0,0 +1,17 @@ +#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_btnpressed(SSOLED *oled, char *data, uint data_size, uint gpio); +int main_clock_bgrefresh(SSOLED *oled, char *data, uint data_size, char in_foreground); +int main_clock_destroy(SSOLED *oled, char *data, uint data_size); + +#endif
\ No newline at end of file |