supla-device
Loading...
Searching...
No Matches
rgbw_leds.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_RGBW_LEDS_H_
5#define SRC_SUPLA_CONTROL_RGBW_LEDS_H_
6
7#include <supla/io.h>
8
9#include "rgbw_base.h"
10
11namespace Supla {
12namespace Control {
13class RGBWLeds : public RGBWBase {
14 public:
16 int redPin,
17 int greenPin,
18 int bluePin,
19 int brightnessPin);
20 RGBWLeds(int redPin, int greenPin, int bluePin, int brightnessPin);
22 Supla::Io::IoPin greenPin,
23 Supla::Io::IoPin bluePin,
24 Supla::Io::IoPin brightnessPin);
25
26 void setRGBWValueOnDevice(uint32_t red,
27 uint32_t green,
28 uint32_t blue,
29 uint32_t brightness) override;
30
31 void onInit() override;
32
33 protected:
34 Supla::Io::IoPin redPin;
35 Supla::Io::IoPin greenPin;
36 Supla::Io::IoPin bluePin;
37 Supla::Io::IoPin brightnessPin;
38};
39
40}; // namespace Control
41}; // namespace Supla
42
43#endif // SRC_SUPLA_CONTROL_RGBW_LEDS_H_
Definition rgbw_base.h:22
Definition rgbw_leds.h:13
void onInit() override
Third method called on element in SuplaDevice.begin()
Definition rgbw_leds.cpp:63
Definition io.h:23
Definition io_pin.h:14