Declares the Controller base class for managing lighting controllers.
Manages multiple CameraBase objects.
uint8_t maxAccentBrightness
Maximum allowed accent brightness level.
Controller(CameraManager *cameras, uint8_t maxBrightness, uint8_t maxAccentBrightness)
Constructs a Controller with specified parameters.
bool startTime
Indicates if the start time has been recorded.
uint32_t previousTime
Tracks the last update time.
const uint32_t softStart
Duration for soft start in microseconds.
uint8_t accentBrightness
Current accent brightness level.
uint8_t brightness
Current brightness level.
uint8_t maxBrightness
Maximum allowed brightness level.
CameraManager * cameras
Pointer to the CameraManager for managing camera data.
void UpdateBrightness()
Updates the brightness based on internal logic.
bool isOn
Indicates if the controller is active.
uint8_t GetBrightness()
Retrieves the current brightness level.
uint8_t GetAccentBrightness()
Retrieves the current accent brightness level.
static T Map(T value, T inLow, T inMax, T outMin, T outMax)
Maps a value from one range to another.