supla-device
Loading...
Searching...
No Matches
src
supla
control
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
11
namespace
Supla {
12
namespace
Control {
13
class
RGBWLeds
:
public
RGBWBase
{
14
public
:
15
RGBWLeds
(
Supla::Io::Base
*io,
16
int
redPin,
17
int
greenPin,
18
int
bluePin,
19
int
brightnessPin);
20
RGBWLeds
(
int
redPin,
int
greenPin,
int
bluePin,
int
brightnessPin);
21
RGBWLeds
(
Supla::Io::IoPin
redPin,
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_
Supla::Control::RGBWBase
Definition
rgbw_base.h:22
Supla::Control::RGBWLeds
Definition
rgbw_leds.h:13
Supla::Control::RGBWLeds::onInit
void onInit() override
Third method called on element in SuplaDevice.begin()
Definition
rgbw_leds.cpp:63
Supla::Io::Base
Definition
io.h:23
Supla::Io::IoPin
Definition
io_pin.h:14
Generated by
1.12.0