|
| virtual void | begin () |
| virtual void | end () |
| virtual const char * | type () const |
| void | setDutyCycleLimit (float limit) |
| | Set the power duty cycle limit of the dimmer. The duty cycle will be clamped to this limit.
|
| void | setDutyCycleMin (float min) |
| | Duty remapping (equivalent to Shelly Dimmer remapping feature). Useful to calibrate the dimmer when using for example a PWM signal to 0-10V analog convertor connected to a voltage regulator which is only working in a specific voltage range like 1-8V.
|
| void | setDutyCycleMax (float max) |
| | Duty remapping (equivalent to Shelly Dimmer remapping feature). Useful to calibrate the dimmer when using for example a PWM signal to 0-10V analog convertor connected to a voltage regulator which is only working in a specific voltage range like 1-8V.
|
| float | getDutyCycleLimit () const |
| | Get the power duty cycle limit of the dimmer.
|
| float | getDutyCycleMin () const |
| | Get the remapped "0" of the dimmer duty cycle.
|
| float | getDutyCycleMax () const |
| | Get the remapped "1" of the dimmer duty cycle.
|
| void | enablePowerLUT (bool enable, uint16_t semiPeriod=0) |
| | Enable or disable the use of power LUT for dimmer curve The power LUT provides a non-linear dimming curve that is more aligned with human perception of brightness. If disabled, a linear dimming curve will be used.
|
| bool | isPowerLUTEnabled () const |
| | Check if the power LUT is enabled.
|
| uint16_t | getPowerLUTSemiPeriod () const |
| | Get the semi-period in us used for the power LUT calculations. If LUT is disabled, returns 0.
|
| bool | isEnabled () const |
| | Check if the dimmer is enabled (if it was able to initialize correctly)
|
| bool | isOnline () const |
| | Returns true if the dimmer is marked online.
|
| void | setOnline (bool online) |
| | Set the online status of the dimmer.
|
| void | on () |
| | Turn on the dimmer at full power.
|
| void | off () |
| | Turn off the dimmer.
|
| bool | isOff () const |
| | Check if the dimmer is off.
|
| bool | isOn () const |
| | Check if the dimmer is on.
|
| bool | isOnAtFullPower () const |
| | Check if the dimmer is on at full power.
|
| bool | setDutyCycle (float dutyCycle) |
| | Set the power duty.
|
| float | getDutyCycle () const |
| | Get the power duty cycle configured for the dimmer by teh user.
|
| float | getDutyCycleMapped () const |
| | Get the remapped power duty cycle from the currently user set duty cycle.
|
| float | getDutyCycleFire () const |
| | Get the real firing duty cycle applied to the dimmer in the range [0, 1].
|
Definition at line 278 of file MycilaDimmer.h.