Versions in this module Expand all Collapse all v0 v0.0.6 Feb 26, 2021 v0.0.5 Feb 26, 2021 Changes in this version + func Max(x, y int) int + func Min(x, y int) int + func RegisterDevicetype(name string, imageSize image.Point, usbProductID uint16, resetPacket []byte, ...) + type Button interface + type ButtonActionHandler interface + Pressed func(Button) + type ButtonDecorator interface + Apply func(image.Image, int) image.Image + type ButtonDisplay interface + GetButtonIndex func() int + GetImageForButton func(int) image.Image + Pressed func() + RegisterUpdateHandler func(func(Button)) + SetButtonIndex func(int) + type Device struct + func Open() (*Device, error) + func OpenWithoutReset() (*Device, error) + func (d *Device) ButtonPress(f func(int, *Device, error)) + func (d *Device) ClearButtons() + func (d *Device) Close() + func (d *Device) GetName() string + func (d *Device) ResetComms() + func (d *Device) SetBrightness(pct int) + func (d *Device) WriteColorToButton(btnIndex int, colour color.Color) error + func (d *Device) WriteImageToButton(btnIndex int, filename string) error + func (d *Device) WriteRawImageToButton(btnIndex int, rawImg image.Image) error + func (d *Device) WriteTextToButton(btnIndex int, text string, textColour color.Color, ...) + type StreamDeck struct + func New() (*StreamDeck, error) + func (sd *StreamDeck) AddButton(btnIndex int, b Button) + func (sd *StreamDeck) ButtonUpdateHandler(b Button) + func (sd *StreamDeck) GetButtonIndex(btnIndex int) Button + func (sd *StreamDeck) GetName() string + func (sd *StreamDeck) SetBrightness(brightness int) + func (sd *StreamDeck) SetDecorator(btnIndex int, d ButtonDecorator) + func (sd *StreamDeck) UnsetDecorator(btnIndex int)