1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|