#pragma once #include #include #include #include "lib/block_notify.hpp" #include "lib/price_notify.hpp" #include "lib/epd.hpp" extern TaskHandle_t priceUpdateTaskHandle; extern TaskHandle_t blockUpdateTaskHandle; extern TaskHandle_t timeUpdateTaskHandle; extern TaskHandle_t taskScreenRotateTaskHandle; uint getCurrentScreen(); void setCurrentScreen(uint newScreen); void setupTimeUpdateTimer(void *pvParameters); void setupScreenRotateTimer(void *pvParameters); void IRAM_ATTR minuteTimerISR(void* arg); void IRAM_ATTR screenRotateTimerISR(void* arg); void taskPriceUpdate(void *pvParameters); void taskBlockUpdate(void *pvParameters); void taskTimeUpdate(void *pvParameters); void taskScreenRotate(void *pvParameters); uint getTimerSeconds(); bool isTimerActive(); void setTimerActive(bool status); void setupTasks(); const char* int64_to_iso8601(int64_t timestamp);