Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InDirection is the direction for input GPIO InDirection = "in" // OutDirection is the direction for output GPIO OutDirection = "out" )
View Source
const ( // ActiveHigh is the state for active high input GPIO ActiveHigh = "0" // ActiveLow is the state for active low input GPIO ActiveLow = "1" )
Variables ¶
This section is empty.
Functions ¶
func EnablePWM ¶
EnablePWM enables PWM on a mux-ed pin See http://www.emutexlabs.com/project/215-intel-edison-gpio-pin-multiplexing-guide
Types ¶
type Gpio ¶
type Gpio struct {
// contains filtered or unexported fields
}
Gpio is a general purpose I/O of the Edison
func New ¶
New returns a new PWM for a given pin - See Edison Breakout documentation to figure out which one you want.
func (Gpio) IsExported ¶
IsExported returns true with the gpio is already exported and usable from sysfs.
func (Gpio) SetActiveLevel ¶
SetActiveLevel set the ActiveLow or ActiveHigh level for IN direction.
func (Gpio) SetDirection ¶
SetDirection defines whether this particular GPIO is used for input or output (use constants InDirection and OutDirection).
Click to show internal directories.
Click to hide internal directories.