|
Treehopper C# API
|
An MCP23008 pin, including the PullUpEnabled functionality 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 | |
| bool | PullUpEnabled [get, set] |
| Whether the pin's internal Pull-Up resistor is enabled or not More... | |
| 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... | |
An MCP23008 pin, including the PullUpEnabled functionality
|
inherited |
Wait for the digital input to change
Implements DigitalIn.
|
inherited |
Make the pin a digital input
Implements DigitalIn.
|
inherited |
Toggle the pin's output value
Implements DigitalOut.
|
inherited |
Make the pin a digital output
Implements DigitalOut.
|
inherited |
Gets a string representation of the pin's current state
|
protectedinherited |
Pin mode for this pin
|
protectedinherited |
Pin (bit) number
|
protectedinherited |
Port expander this pin belongs to
|
inherited |
The pin number of this port expander pin
|
getset |
Whether the pin's internal Pull-Up resistor is enabled or not
|
getsetinherited |
The mode of the pin
|
getsetinherited |
Gets or sets the output value of the pin when an output, or get the current value of the pin when an input
|
inherited |
Event occurs whenever a digital input value has changed