Documentation ¶
Overview ¶
Package acpin presents the gpio.PinIn interface to handle consistent software detection of AC voltage on a named GPIO pin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PinIn ¶
type PinIn struct {
// contains filtered or unexported fields
}
PinIn implements gpio.PinIn to represent voltage on an AC GPIO pin
func ByName ¶
ByName returns a PinIn associated with GPIO pin described by name. It will return gpio.High when it has detected AC voltage.
This function duplicates gpioreg.ByName signature to simplify code that interacts with both types of pins.
Click to show internal directories.
Click to hide internal directories.