Documentation ¶
Index ¶
- Constants
- type GPIO
- func (this *GPIO) Define(cfg gopi.Config) error
- func (this *GPIO) Dispose() error
- func (this *GPIO) GetPinMode(logical gopi.GPIOPin) gopi.GPIOMode
- func (this *GPIO) New(gopi.Config) error
- func (this *GPIO) NumberOfPhysicalPins() uint
- func (this *GPIO) PhysicalPin(pin uint) gopi.GPIOPin
- func (this *GPIO) PhysicalPinForPin(logical gopi.GPIOPin) uint
- func (this *GPIO) Pins() []gopi.GPIOPin
- func (this *GPIO) ReadPin(logical gopi.GPIOPin) gopi.GPIOState
- func (this *GPIO) SetPinMode(logical gopi.GPIOPin, mode gopi.GPIOMode)
- func (this *GPIO) SetPullMode(logical gopi.GPIOPin, pull gopi.GPIOPull) error
- func (this *GPIO) String() string
- func (this *GPIO) Watch(logical gopi.GPIOPin, edge gopi.GPIOEdge) error
- func (this *GPIO) WritePin(logical gopi.GPIOPin, state gopi.GPIOState)
- type Watcher
Constants ¶
View Source
const ( GPIO_EXPORT = "/sys/class/gpio/export" GPIO_UNEXPORT = "/sys/class/gpio/unexport" GPIO_PIN = "/sys/class/gpio/gpio%v" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPIO ¶
type GPIO struct { gopi.Unit sync.RWMutex gopi.Publisher gopi.Logger *Watcher // contains filtered or unexported fields }
func (*GPIO) NumberOfPhysicalPins ¶
func (*GPIO) SetPinMode ¶
Set pin mode
func (*GPIO) SetPullMode ¶
Click to show internal directories.
Click to hide internal directories.