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
8
9namespace sensesp {
10
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
Sets a GPIO pin to whatever the input is (true = HIGH, false = LOW), and passes the value on to the n...
void set_input(bool new_value, uint8_t input_channel=0) override
Construct a new transform based on a single function.
A common type of transform that consumes, transforms, then outputs values of the same data type.
Definition transform.h:95