Constructor for a single GPIO pin.
Namespace: IO.Objects.SimpleIO.GPIOAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax public Pin(
Designator desg,
Direction dir,
bool state = false,
Driver driver = Driver.PushPull,
Edge edge = Edge.None,
Polarity polarity = Polarity.ActiveHigh
)
Parameters
- desg Designator
- GPIO pin designator.
- dir Direction
- Data direction.
- state Boolean (Optional)
- Initial GPIO output state.
- driver Driver (Optional)
- Output driver setting.
- edge Edge (Optional)
- Interrupt edge setting.
- polarity Polarity (Optional)
- Polarity setting.
See Also