SensESP
2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
digital_output.h
Go to the documentation of this file.
1
#ifndef _digital_output_H
2
#define _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_input
(
bool
new_value
,
uint8_t
input_channel
= 0)
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::set_input
void set_input(bool new_value, uint8_t input_channel=0) override
Definition
digital_output.cpp:12
sensesp::LambdaTransform
Construct a new transform based on a single function.
Definition
lambda_transform.h:71
sensesp::SymmetricTransform
A common type of transform that consumes, transforms, then outputs values of the same data type.
Definition
transform.h:95
sensesp
Definition
sensesp.h:22
observable.h
transform.h
src
sensesp
sensors
digital_output.h
Generated by
1.9.8