#pragma once #include "pico/util/datetime.h" // Includes also buttons, API and ss_oled #include "../../app/base_app.hpp" class app_main_clock : public BaseApp { private: 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); AppAttributes app_attributes = {1, true}; public: const AppAttributes& app_get_attributes() { return app_attributes; } app_main_clock(AppAPI *app_api); AppReturnValues render(AppAPI *app_api); AppReturnValues btn_pressed(AppAPI *app_api, uint gpio, unsigned long delta); AppReturnValues bgrefresh(AppAPI *app_api, bool in_foreground); ~app_main_clock(); };