Click or drag to resize

MUNTS_0018OrangePiZero2WGPIOPinFactory Method

GPIO pin object factory for GPIO pins at connectors J4 to J7.

Namespace: IO.Objects.SimpleIO.Platforms
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax
C#
public static Pin GPIOPinFactory(
	Designator desg,
	Direction dir,
	bool state = false,
	Driver driver = Driver.PushPull,
	Edge edge = Edge.None,
	Polarity polarity = Polarity.ActiveHigh
)

Parameters

desg  Designator
Device designator for one of the on-board GPIO pins (J4D0 to J7D1.
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.

Return Value

Pin
GPIO pin object.
See Also