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.2025.76.2
Syntax
C#
public Pin(
	Designator desg,
	Direction dir,
	bool state = false,
	Drive drive = Drive.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.
drive  Drive  (Optional)
Output Drive setting.
edge  Edge  (Optional)
Input edge setting.
polarity  Polarity  (Optional)
Polarity setting.
See Also