Treehopper C# API
DigitalIn Interface Reference

Interface for digital pins supporting input functionality More...

Inheritance diagram for DigitalIn:
DigitalBase DigitalIO DigitalInPeripheralPin Pin IPortExpanderPin PortExpanderPin Mcp23008.Pin

Public Member Functions

Task< bool > AwaitDigitalValueChangeAsync ()
 Awaits until the digital value changes More...
 
Task MakeDigitalInAsync ()
 Make the pin a digital input More...
 

Properties

bool DigitalValue [get]
 Get or set the DigitalValue of the pin More...
 

Events

OnDigitalInValueChanged DigitalValueChanged
 Fires whenever the digital pin's input changes value More...
 

Detailed Description

Interface for digital pins supporting input functionality

Member Function Documentation

◆ AwaitDigitalValueChangeAsync()

Task<bool> AwaitDigitalValueChangeAsync ( )

Awaits until the digital value changes

Returns
An awaitable bool of the new value

Implemented in Pin, PortExpanderPin, and DigitalInPeripheralPin.

◆ MakeDigitalInAsync()

Task MakeDigitalInAsync ( )

Make the pin a digital input

Implemented in Pin, PortExpanderPin, and DigitalInPeripheralPin.

Property Documentation

◆ DigitalValue

bool DigitalValue
getinherited

Get or set the DigitalValue of the pin

Event Documentation

◆ DigitalValueChanged

OnDigitalInValueChanged DigitalValueChanged

Fires whenever the digital pin's input changes value


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