19#ifndef SRC_SUPLA_CONTROL_LIGHTING_PWM_LEDS_H_
20#define SRC_SUPLA_CONTROL_LIGHTING_PWM_LEDS_H_
22#include "lighting_pwm_base.h"
32 static constexpr int kMaxOutputs = 5;
34 LightingPwmLeds(LightingPwmLeds *parent,
40 LightingPwmLeds(LightingPwmLeds *parent,
47 void setRGBCCTValueOnDevice(uint32_t output[5],
int usedOutputs)
override;
53 int getOutputPin(
int outputIndex)
const;
56 void applyPwmFrequencyToOutputs();
57 void applyDefaultChannelFunctions();
58 int getConfiguredOutputsCount()
const;
62 int32_t lastSourceValue = -1;
63 int32_t lastDutyValue = -1;
68 LightingPwmLeds *parentPwm =
nullptr;
Definition SuplaDevice.h:162
LightingPwmBase(LightingPwmBase *parent=nullptr)
Constructor.
Definition lighting_pwm_base.cpp:101
Definition lighting_pwm_leds.h:30
void onLoadConfig(SuplaDeviceClass *sdc) override
First method called on element in SuplaDevice.begin().
Definition lighting_pwm_leds.cpp:176
void onInit() override
Third method called on element in SuplaDevice.begin().
Definition lighting_pwm_leds.cpp:181
Definition lighting_pwm_leds.h:60