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/rgbw_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(RGBWBase *rgbwElement);
41 void handleAction(
int event,
int action)
override;
43 void setButtonControlType(
int rgbwChannelNumber,
44 RGBWBase::ButtonControlType type);
52 Button *attachedButton =
nullptr;
53 RGBWBase *rgbw[SUPLA_MAX_GROUP_CONTROL_ELEMENTS] = {};
54 RGBWBase::ButtonControlType controlType[SUPLA_MAX_GROUP_CONTROL_ELEMENTS] =
Definition SuplaDevice.h:93
Definition rgbw_base.h:58