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.
17 lines
460 B
C
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
|