Files
system-control/firmware/components/hermes/include/hermes/hermes.h
T
mars3142 32ea23906f dynamic menu
- also component renaming

Signed-off-by: Peter Siegmund <developer@mars3142.org>
2026-03-28 16:57:15 +01:00

31 lines
708 B
C

#pragma once
#include <u8g2.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @brief Initializes the menu renderer with the display context
* @param u8g2 Display context
* @param inactivity_timeout_ms Timeout in ms before screensaver activates (0 = disabled)
*/
void hermes_init(u8g2_t *u8g2, uint32_t inactivity_timeout_ms);
/**
* @brief Renders the current state to the display (splash, menu, or screensaver)
* @param dt Delta time in milliseconds since the last call
*/
void hermes_draw(uint64_t dt);
/**
* @brief Resets the inactivity timer (call on button input)
*/
void hermes_reset_inactivity(void);
#ifdef __cplusplus
}
#endif