Documentation
¶
Index ¶
- type Display
- type Joystick
- func (j *Joystick) AddPressedEvent(f JoystickPressedEvent)
- func (j *Joystick) AddReleasedEvent(f JoystickReleasedEvent)
- func (j *Joystick) ClearPressedEvents()
- func (j *Joystick) ClearReleasedEvents()
- func (j *Joystick) IsPressed() bool
- func (j *Joystick) Position() (x, y uint16)
- func (j *Joystick) ThreadPressed()
- type JoystickPressedEvent
- type JoystickReleasedEvent
- type LED
- type Rotary
- type RotaryPushButtonEvent
- type RotaryReleasedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶
type Display interface { drivers.Displayer Rotate(r drivers.Rotation) Display Rotation() drivers.Rotation Clear() ClearBuffer() }
func NewDisplay ¶
func NewDisplay() Display
func NewRotatedDisplay ¶
type Joystick ¶ added in v1.0.0
type Joystick struct {
// contains filtered or unexported fields
}
func NewJoystick ¶ added in v1.0.0
func NewJoystick() *Joystick
func (*Joystick) AddPressedEvent ¶ added in v1.0.0
func (j *Joystick) AddPressedEvent(f JoystickPressedEvent)
func (*Joystick) AddReleasedEvent ¶ added in v1.0.0
func (j *Joystick) AddReleasedEvent(f JoystickReleasedEvent)
func (*Joystick) ClearPressedEvents ¶ added in v1.0.0
func (j *Joystick) ClearPressedEvents()
func (*Joystick) ClearReleasedEvents ¶ added in v1.0.0
func (j *Joystick) ClearReleasedEvents()
func (*Joystick) ThreadPressed ¶ added in v1.0.0
func (j *Joystick) ThreadPressed()
type JoystickPressedEvent ¶ added in v1.0.0
type JoystickPressedEvent func()
type JoystickReleasedEvent ¶ added in v1.0.0
type JoystickReleasedEvent func()
type LED ¶
type LED struct {
// contains filtered or unexported fields
}
func NewLED ¶
func NewLED(s pio.StateMachine) *LED
type Rotary ¶
type Rotary struct {
// contains filtered or unexported fields
}
func (*Rotary) AddPressedEvent ¶
func (r *Rotary) AddPressedEvent(f RotaryPushButtonEvent)
func (*Rotary) AddReleasedEvent ¶
func (r *Rotary) AddReleasedEvent(f RotaryReleasedEvent)
func (*Rotary) ClearPressedEvents ¶
func (r *Rotary) ClearPressedEvents()
func (*Rotary) ClearReleasedEvents ¶
func (r *Rotary) ClearReleasedEvents()
func (*Rotary) ThreadPressed ¶
func (r *Rotary) ThreadPressed()
type RotaryPushButtonEvent ¶
type RotaryPushButtonEvent func()
type RotaryReleasedEvent ¶
type RotaryReleasedEvent func()
Click to show internal directories.
Click to hide internal directories.