Files
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

17 lines
460 B
C

#pragma once
#include <stdint.h>
typedef enum {
LED_OFF,
LED_BREATHE, // slow pulse, all LEDs
LED_SPIN, // a dot with a tail running around the ring
LED_COUNTDOWN, // ring drains as leds_set_countdown() falls from 1000 to 0
LED_SOLID,
LED_BLINK,
} led_mode_t;
void leds_init(void);
void leds_set_mode(led_mode_t mode, uint32_t rgb);
void leds_set_countdown(int permille);
void leds_set_brightness(uint8_t b); // 0..255