supla-device
Loading...
Searching...
No Matches
src
supla
control
dimmer_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_DIMMER_LEDS_H_
5
#define SRC_SUPLA_CONTROL_DIMMER_LEDS_H_
6
7
#include <supla/io.h>
8
9
#include "dimmer_base.h"
10
11
namespace
Supla {
12
namespace
Control {
13
class
DimmerLeds
:
public
DimmerBase
{
14
public
:
15
explicit
DimmerLeds
(
Supla::Io::Base
*io,
int
brightnessPin);
16
explicit
DimmerLeds
(
int
brightnessPin);
17
explicit
DimmerLeds
(
Supla::Io::IoPin
brightnessPin);
18
19
void
setRGBWValueOnDevice(uint32_t red,
20
uint32_t green,
21
uint32_t blue,
22
uint32_t brightness)
override
;
23
24
void
onInit
()
override
;
25
26
protected
:
27
Supla::Io::IoPin
brightnessPin;
28
};
29
30
};
// namespace Control
31
};
// namespace Supla
32
33
#endif
// SRC_SUPLA_CONTROL_DIMMER_LEDS_H_
Supla::Control::DimmerBase
Definition
dimmer_base.h:11
Supla::Control::DimmerLeds
Definition
dimmer_leds.h:13
Supla::Control::DimmerLeds::onInit
void onInit() override
Third method called on element in SuplaDevice.begin()
Definition
dimmer_leds.cpp:41
Supla::Io::Base
Definition
io.h:23
Supla::Io::IoPin
Definition
io_pin.h:14
Generated by
1.12.0