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