Skip to content

Class eva::DigitalPinReader

template <int tPin, int tPinMode>

ClassList > eva > DigitalPinReader

Reads digital pin value. More...

  • #include <evaStdReaders.h>

Public Functions

Type Name
DigitalPinReader ()
Constructs a DigitalPinReader and configures pin mode.
signed short getValue ()
Reads digital pin value.
bool isValid ()
Checks if reader is valid.

Detailed Description

Template parameters:

  • tPin Arduino pin number
  • tPinMode Pin mode (INPUT, INPUT_PULLUP, etc.)

Public Functions Documentation

function DigitalPinReader

Constructs a DigitalPinReader and configures pin mode.

inline eva::DigitalPinReader::DigitalPinReader () 

function getValue

Reads digital pin value.

inline signed short eva::DigitalPinReader::getValue () 

Returns:

HIGH or LOW


function isValid

Checks if reader is valid.

inline bool eva::DigitalPinReader::isValid () 

Returns:

Always true for digital pin reader



The documentation for this class was generated from the following file src/evaStdReaders.h