Treehopper C++ API
DigitalIn Class Referenceabstract

digital input pin abstract class. More...

#include <DigitalIn.h>

Inheritance diagram for DigitalIn:
Pin

Public Member Functions

 DigitalIn ()
 
virtual void makeDigitalInput ()=0
 Make the pin a digital input. More...
 
virtual bool digitalValue ()
 Get the digital value. More...
 

Public Attributes

Event< DigitalIn, PinChangedEventArgsdigitalValueChanged
 Fires whenever the digital input changes. More...
 

Detailed Description

This abstract class provides digital input support used by Pin, and can also be extended by GPIO expanders and other peripherals that provide DigitalIn -like functionality.

Constructor & Destructor Documentation

◆ DigitalIn()

DigitalIn ( )
inline

Member Function Documentation

◆ digitalValue()

virtual bool digitalValue ( )
inlinevirtual

Reimplemented in Pin.

◆ makeDigitalInput()

virtual void makeDigitalInput ( )
pure virtual

Implemented in Pin.

Member Data Documentation

◆ digitalValueChanged

Event<DigitalIn, PinChangedEventArgs> digitalValueChanged

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