Documentation ¶
Index ¶
- func Close() error
- func Open() (err error)
- func PinMode(pin Pin, direction Direction)
- func PullMode(pin Pin, pull Pull)
- func TogglePin(pin Pin)
- func WritePin(pin Pin, state State)
- type Direction
- type Pin
- func (pin Pin) High()
- func (pin Pin) Input()
- func (pin Pin) Low()
- func (pin Pin) Mode(dir Direction)
- func (pin Pin) Output()
- func (pin Pin) Pull(pull Pull)
- func (pin Pin) PullDown()
- func (pin Pin) PullOff()
- func (pin Pin) PullUp()
- func (pin Pin) Read() State
- func (pin Pin) Toggle()
- func (pin Pin) Write(state State)
- type Pull
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
func Open() (err error)
Open and memory map GPIO memory range from /dev/mem . Some reflection magic is used to convert it to a unsafe []uint32 pointer
Types ¶
Click to show internal directories.
Click to hide internal directories.