21 virtual bool fade(uint16_t target_level, roo_time::Duration duration) = 0;
Abstract interface representing a monochrome LED.
void turnOff()
Turns the LED completely off.
virtual void setLevel(uint16_t level)=0
Sets the LED brightness in the range 0 (off) to 65535 (max).
void turnOn()
Sets the LED to the maximum brightness.
virtual bool fade(uint16_t target_level, roo_time::Duration duration)=0
Initiates a linear fade to the target level over the duration.