Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2025 Changes in this version + const ImageSize + type Action uint8 + const Pressed + const Released + const TurnedCCW + const TurnedCW + func (a Action) IsPress() bool + func (a Action) IsRotation() bool + type Control uint8 + const ButtonCenter + const ButtonLeft + const ButtonRight + const DisplayBottomCenter + const DisplayBottomLeft + const DisplayBottomRight + const DisplayTopCenter + const DisplayTopLeft + const DisplayTopRight + const KnobBottomLeft + const KnobBottomRight + const KnobTop + func (c Control) IsButton() bool + func (c Control) IsDisplay() bool + func (c Control) IsKnob() bool + type Device struct + func Open(serial string) (*Device, error) + func (d *Device) Clear(ctx context.Context) error + func (d *Device) Close() + func (d *Device) Descriptor() string + func (d *Device) ReadEvents(ctx context.Context) (<-chan Event, error) + func (d *Device) SetBrightness(ctx context.Context, percent uint8) error + func (d *Device) SetImage(ctx context.Context, display Control, img image.Image) error + func (d *Device) SetImages(ctx context.Context, imgs [6]image.Image) error + type DeviceInfo struct + Address int + Bus int + Serial string + func List() ([]DeviceInfo, error) + func (i DeviceInfo) String() string + type Event struct + Action Action + Control Control + func (e Event) Is(control Control, action Action) bool + func (e Event) IsPress(control Control) bool + func (e Event) IsRotation(control Control) bool