Documentation ¶
Index ¶
- type GPIO
- func (this *GPIO) Close() 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(gopi.GPIOPin, gopi.GPIOEdge) error
- func (this *GPIO) WritePin(logical gopi.GPIOPin, state gopi.GPIOState)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPIO ¶
type GPIO struct {
gopi.Unit
}
func (*GPIO) GetPinMode ¶
func (this *GPIO) GetPinMode(logical gopi.GPIOPin) gopi.GPIOMode
func (*GPIO) NumberOfPhysicalPins ¶
func (*GPIO) PhysicalPin ¶
func (*GPIO) PhysicalPinForPin ¶
func (*GPIO) SetPinMode ¶
func (this *GPIO) SetPinMode(logical gopi.GPIOPin, mode gopi.GPIOMode)
func (*GPIO) SetPullMode ¶
Click to show internal directories.
Click to hide internal directories.