supla-device
Loading...
Searching...
No Matches
rgb_base.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_CONTROL_RGB_BASE_H_
5#define SRC_SUPLA_CONTROL_RGB_BASE_H_
6
7#include "rgbw_base.h"
8
9namespace Supla {
10namespace Control {
11class RGBBase : public RGBWBase {
12 public:
13 RGBBase();
14 void setRGBCCT(int red,
15 int green,
16 int blue,
17 int colorBrightness,
18 int brightness,
19 int whiteTemperature,
20 bool toggle = false,
21 bool instant = false) override;
22
23 void onLoadState() override;
24 void onSaveState() override;
25};
26
27}; // namespace Control
28}; // namespace Supla
29
30#endif // SRC_SUPLA_CONTROL_RGB_BASE_H_
Definition rgb_base.h:11
void onLoadState() override
Second method called on element in SuplaDevice.begin().
Definition rgb_base.cpp:46
void onSaveState() override
Method called periodically during SuplaDevice iteration.
Definition rgb_base.cpp:26
Definition rgbw_base.h:22