|
Treehopper C# API
|
Construct a new Port Expander pin More...
Public Member Functions | |
| Task< bool > | AwaitDigitalValueChangeAsync () |
| Wait for the digital input to change More... | |
| Task | MakeDigitalInAsync () |
| Make the pin a digital input More... | |
| async Task | ToggleOutputAsync () |
| Toggle the pin's output value More... | |
| Task | MakeDigitalPushPullOutAsync () |
| Make the pin a digital output More... | |
| override string | ToString () |
| Gets a string representation of the pin's current state More... | |
Public Attributes | |
| int | PinNumber => pinNumber |
| The pin number of this port expander pin More... | |
Protected Attributes | |
| PortExpanderPinMode | mode = PortExpanderPinMode.DigitalInput |
| Pin mode for this pin More... | |
| int | pinNumber |
| Pin (bit) number More... | |
| IPortExpanderParent | portExpander |
| Port expander this pin belongs to More... | |
Properties | |
| PortExpanderPinMode | Mode [get, set] |
| The mode of the pin More... | |
| bool | DigitalValue [get, set] |
| Gets or sets the output value of the pin when an output, or get the current value of the pin when an input More... | |
Events | |
| OnDigitalInValueChanged | DigitalValueChanged |
| Event occurs whenever a digital input value has changed More... | |
Construct a new Port Expander pin
| Task<bool> AwaitDigitalValueChangeAsync | ( | ) |
Wait for the digital input to change
Implements DigitalIn.
| Task MakeDigitalInAsync | ( | ) |
Make the pin a digital input
Implements DigitalIn.
| async Task ToggleOutputAsync | ( | ) |
Toggle the pin's output value
Implements DigitalOut.
| Task MakeDigitalPushPullOutAsync | ( | ) |
Make the pin a digital output
Implements DigitalOut.
| override string ToString | ( | ) |
Gets a string representation of the pin's current state
|
protected |
Pin mode for this pin
|
protected |
Pin (bit) number
|
protected |
Port expander this pin belongs to
| int PinNumber => pinNumber |
The pin number of this port expander pin
|
getset |
The mode of the pin
|
getset |
Gets or sets the output value of the pin when an output, or get the current value of the pin when an input
| OnDigitalInValueChanged DigitalValueChanged |
Event occurs whenever a digital input value has changed