SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::DigitalInput Class Reference

DigitalInput is the base class for reading a digital GPIO pin. More...

#include <sensesp/sensors/digital_input.h>

Inheritance diagram for sensesp::DigitalInput:
[legend]

Public Member Functions

 DigitalInput (uint8_t pin, int pin_mode)
 

Protected Attributes

uint8_t pin_
 

Detailed Description

DigitalInput is the base class for reading a digital GPIO pin.

Parameters
pinThe GPIO pin to which the device is connected
pin_modeWill be INPUT or INPUT_PULLUP

Definition at line 20 of file digital_input.h.

Constructor & Destructor Documentation

◆ DigitalInput()

sensesp::DigitalInput::DigitalInput ( uint8_t pin,
int pin_mode )
inline

Definition at line 22 of file digital_input.h.

Member Data Documentation

◆ pin_

uint8_t sensesp::DigitalInput::pin_
protected

Definition at line 27 of file digital_input.h.


The documentation for this class was generated from the following file: