55 static constexpr bool isModeManager =
false;
56 static constexpr bool isGroupManager =
false;
71 static void loop(
auto& ctx) {
return; }
153 static bool custom_hold(
auto& ctx, uint8_t nbClickAndHold,
bool isEndOfHoldEvent, uint32_t holdDuration)
273 static constexpr bool everySunsetCallback =
false;
274 static constexpr bool everyBrightCallback =
false;
275 static constexpr bool everySystemCallbacks =
false;
276 static constexpr bool everyRequireUserThread =
false;
277 static constexpr bool everyCustomRamp =
false;
278 static constexpr bool everyButtonCustomUI =
false;
Contains basic interface types to implement custom user modes.
Definition: control_fixed_modes.hpp:12
uint16_t brightness_t
Define the type of the brightness parameters.
Definition: constants.h:147
Mode custom static state, made available through context (optional)
Definition: mode_type.hpp:60
Parent object for all custom user modes.
Definition: mode_type.hpp:53
static void read_parameters(auto &ctx)
Custom callback to read parameters from filesystem (optional)
Definition: mode_type.hpp:196
static constexpr bool hasSystemCallbacks
Toggles advanced system callbacks, see list here .
Definition: mode_type.hpp:170
static void write_parameters(auto &ctx)
Custom callback to write parameters to filesystem (optional)
Definition: mode_type.hpp:204
static bool custom_click(auto &ctx, uint8_t nbClick)
Custom "usermode" button UI for "click" action (optional)
Definition: mode_type.hpp:140
static void user_thread(auto &ctx)
Custom secondary loop, executed in another thread (optional)
Definition: mode_type.hpp:221
static void on_exit_mode(auto &ctx)
Custom callback when mode goes outside of focus (optional)
Definition: mode_type.hpp:83
static constexpr bool hasCustomRamp
Toggles the use of custom ramps & BasicMode::custom_ramp_update()
Definition: mode_type.hpp:115
static constexpr uint32_t storeId
Store identifier for persistent storage (optional)
Definition: mode_type.hpp:265
static void brightness_update(auto &ctx, brightness_t brightness)
Custom callback when brightness changes (optional)
Definition: mode_type.hpp:109
static constexpr bool hasButtonCustomUI
Toggles "usermode" button UI custom_click() and custom_hold()
Definition: mode_type.hpp:130
static void on_enter_mode(auto &ctx)
Custom callback when mode gains focus (optional)
Definition: mode_type.hpp:77
static constexpr bool hasSunsetAnimation
Toggles the use of custom BasicMode::sunset_update() callback.
Definition: mode_type.hpp:86
static void loop(auto &ctx)
Custom user mode loop function (default)
Definition: mode_type.hpp:71
static constexpr bool hasBrightCallback
Toggles the use of custom BasicMode::brightness_update() callback.
Definition: mode_type.hpp:98
static constexpr bool requireUserThread
Toggles the use of custom BasicMode::user_thread() callback.
Definition: mode_type.hpp:211
static void power_off_sequence(auto &ctx)
Custom callback when the system powers off (optional)
Definition: mode_type.hpp:188
static void power_on_sequence(auto &ctx)
Custom callback when the system powers on (optional)
Definition: mode_type.hpp:179
static bool custom_hold(auto &ctx, uint8_t nbClickAndHold, bool isEndOfHoldEvent, uint32_t holdDuration)
Custom "usermode" button UI for "click+hold" action (optional)
Definition: mode_type.hpp:153
static void sunset_update(auto &ctx, float progress)
Custom callback when sunset mode is updated (optional)
Definition: mode_type.hpp:95
static void custom_ramp_update(auto &ctx, uint8_t rampValue)
Custom callback when system sets user ramp (optional)
Definition: mode_type.hpp:127