Click or drag to resize

Pin Constructor

Constructor for a single GPIO pin.

Namespace: IO.Objects.SimpleIO.GPIO
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax
C#
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