pin

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func NewRotatedDisplay(r drivers.Rotation) Display

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) IsPressed added in v1.0.0

func (j *Joystick) IsPressed() bool

func (*Joystick) Position added in v1.0.0

func (j *Joystick) Position() (x, y uint16)

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

func (*LED) Set

func (l *LED) Set(c color.Color)

type Rotary

type Rotary struct {
	// contains filtered or unexported fields
}

func NewRotary

func NewRotary(precision int) *Rotary

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) Position

func (r *Rotary) Position() int

func (*Rotary) ThreadPressed

func (r *Rotary) ThreadPressed()

type RotaryPushButtonEvent

type RotaryPushButtonEvent func()

type RotaryReleasedEvent

type RotaryReleasedEvent func()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳