17: m_pwm(ledPin, timebase, inverted),
56 SEMF_INFO(
"set blinking with on time %u and off time %u", onTime, offTime);
58 m_pwm.
set(onTime, m_inverted);
Interface class for using a GPIO pin of the microcontroller.
Mode mode() const override
Returns the active mode of the led.
void setBlinking(unsigned int onOffTime) override
Starts blinking the led with the same on and off time.
LedBlinking(Gpio &ledPin, app::TimeBase &timebase, bool inverted=false)
Constructor.
void setMaxValue(unsigned int maxValue) override
Set the maximum possible PWM value.
void set(unsigned int value, bool inverted=false) override
Set a PWM value. Duty cycle is value / maxValue.
bool isEnabled() const override
Returns the current status of PWM module.
A TimeBase is the bridge between e.g. a hardware timer (interrupt service routine) and TickReceiver o...