Documentation ¶
Overview ¶
Package gpio provides functions for interacting with GPIO pins via the GPIO Sysfs Interface for Userspace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPinID ¶
GetPinID computes the sysfs pin ID for a specific port on a specific GPIO controller chip. The controller arg is matched to a gpiochip's label in sysfs. GetPinID gets the base offset of that chip, and adds the specific pin number.
func SetOutputValue ¶
SetOutputValue configures the gpio as an output pin with the given value.
Types ¶
Click to show internal directories.
Click to hide internal directories.