10#ifndef SEMF_APP_OUTPUT_LEDDIMMING_H_
11#define SEMF_APP_OUTPUT_LEDDIMMING_H_
66 virtual void setBrightness(uint16_t minBrightness, uint16_t maxBrightness) = 0;
89 virtual void setBlinking(
unsigned int onTime,
unsigned int offTime) = 0;
105 virtual void setSine(
unsigned int periodInTimeBaseTicks,
unsigned int startIndexInTimeBaseTicks) = 0;
113 virtual void setSine(
unsigned int periodInTimeBaseTicks) = 0;
128 virtual void setTriangle(
unsigned int periodInTimeBaseTicks,
unsigned int startIndexInTimeBaseTicks) = 0;
This class uses PwmOut and a SoftwareTimer in order to generate different waveforms....
virtual void setBrightness(uint16_t minBrightness, uint16_t maxBrightness)=0
Sets the minimum and maximum brightness of the LED.
virtual void setBrightness(uint16_t maxBrightness)=0
Sets the maximum brightness of the LED.
virtual void setSine(unsigned int periodInTimeBaseTicks)=0
Starts showing a sine waveform on the led.
virtual void setTriangle(unsigned int periodInTimeBaseTicks)=0
Starts showing a triangle waveform on the led. Maximal brightness can be set by setBrightness functio...
virtual void setBlinking(unsigned int onOffTime)=0
Start blinking the led with the same on-off time.
virtual Mode mode() const =0
Returns the active mode of the led.
virtual void setTriangle(unsigned int periodInTimeBaseTicks, unsigned int startIndexInTimeBaseTicks)=0
Starts showing a triangle waveform on the led.
virtual void setBlinking(unsigned int onTime, unsigned int offTime)=0
Starts blinking the led with different on and off time.
virtual void setSine(unsigned int periodInTimeBaseTicks, unsigned int startIndexInTimeBaseTicks)=0
Starts showing a sine waveform on the led.
virtual ~LedDimming()=default
Interface for all Led classes.