SensESP
3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
digital_output.h
Go to the documentation of this file.
1
#ifndef SENSESP_SENSORS_DIGITAL_OUTPUT_H
2
#define SENSESP_SENSORS_DIGITAL_OUTPUT_H
3
4
#include <ArduinoJson.h>
5
6
#include "
sensesp/system/observable.h
"
7
#include "
sensesp/transforms/transform.h
"
8
9
namespace
sensesp
{
10
17
class
DigitalOutput
:
public
BooleanTransform
{
18
public
:
19
DigitalOutput
(
int
pin);
20
void
set
(
const
bool
& new_value)
override
;
21
22
private
:
23
int
pin_number_;
24
};
25
26
}
// namespace sensesp
27
28
#endif
sensesp::DigitalOutput
Sets a GPIO pin to whatever the input is (true = HIGH, false = LOW), and passes the value on to the n...
Definition
digital_output.h:17
sensesp::DigitalOutput::DigitalOutput
DigitalOutput(int pin)
Definition
digital_output.cpp:7
sensesp::DigitalOutput::set
void set(const bool &new_value) override
Definition
digital_output.cpp:11
sensesp::SymmetricTransform
A common type of transform that consumes, transforms, then outputs values of the same data type.
Definition
transform.h:94
sensesp
Definition
sensesp.cpp:7
observable.h
transform.h
src
sensesp
sensors
digital_output.h
Generated by
1.12.0