SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
digital_output.cpp
Go to the documentation of this file.
1#include "digital_output.h"
2
3#include "Arduino.h"
4
5namespace sensesp {
6
8 pin_number_ = pin;
9 pinMode(pin, OUTPUT);
10}
11
13 digitalWrite(pin_number_, new_value);
14 this->emit(new_value);
15}
16
17} // namespace sensesp
void set_input(bool new_value, uint8_t input_channel=0) override
Construct a new transform based on a single function.
void emit(T new_value)