19#ifndef SRC_SUPLA_CONTROL_GROUP_BUTTON_CONTROL_RGBW_H_
20#define SRC_SUPLA_CONTROL_GROUP_BUTTON_CONTROL_RGBW_H_
22#include <supla/action_handler.h>
23#include <supla/element.h>
24#include <supla/control/lighting_pwm_base.h>
26#define SUPLA_MAX_GROUP_CONTROL_ELEMENTS 10
28namespace Supla::Control {
33class GroupButtonControlRgbw :
public ActionHandler,
public Element {
35 explicit GroupButtonControlRgbw(
Button *button =
nullptr);
36 void attach(
Button *button);
37 void addToGroup(LightingPwmBase *rgbwElement);
41 void handleAction(
int event,
int action)
override;
43 void setButtonControlType(
int rgbwChannelNumber,
44 LightingPwmBase::ButtonControlType type);
52 Button *attachedButton =
nullptr;
53 LightingPwmBase *rgbw[SUPLA_MAX_GROUP_CONTROL_ELEMENTS] = {};
54 LightingPwmBase::ButtonControlType
55 controlType[SUPLA_MAX_GROUP_CONTROL_ELEMENTS] =
Definition SuplaDevice.h:162
Definition lighting_pwm_base.h:58