Files
t-embed-insecam-widget/main/menu.h
T
Juli d92a2e53cc On-device menu, persistent settings and 12 favourite slots
Hold the knob to open a six-row menu: save/remove the playing camera as
a favourite (12 NVS slots), play or forget favourites, choose the
source (random insecam or favourites), time per camera, listing,
screen and ring brightness, caption, and reboot into Wi-Fi setup.
Settings live in NVS and override the Kconfig first-boot defaults.
Camera URLs are stored with their COUNTER placeholder so favourites get
a fresh cache-buster on every visit.
2026-09-17 00:57:02 +02:00

9 lines
306 B
C

#pragma once
#include "insecam.h"
typedef enum { MENU_RESUME, MENU_PLAY_FAV } menu_result_t;
// Runs the on-device settings menu on the calling task until it closes.
// `current` is the camera that was playing (for the favourite toggle).
menu_result_t menu_run(const cam_info_t *current, int *fav_slot);