Versions in this module Expand all Collapse all v0 v0.1.3 Nov 8, 2020 Changes in this version + const ButtonSize + const NumButtonColumns + const NumButtonRows + const NumButtons + const PanelHeight + const PanelWidth + const ProductID + const Spacer + const VendorID + type BtnEvent func(btnIndex int, newBtnState BtnState) + type BtnState int + const BtnPressed + const BtnReleased + func (i BtnState) String() string + type Page interface + Draw func() + Parent func() Page + Set func(btnIndex int, state BtnState) Page + SetActive func(bool) + type ReadErrorCb func(err error) + type StreamDeck struct + func NewStreamDeck(serial ...string) (*StreamDeck, error) + func (sd *StreamDeck) ClearAllBtns() + func (sd *StreamDeck) ClearBtn(btnIndex int) error + func (sd *StreamDeck) Close() error + func (sd *StreamDeck) FillColor(btnIndex, r, g, b int) error + func (sd *StreamDeck) FillImage(btnIndex int, img image.Image) error + func (sd *StreamDeck) FillImageFromFile(keyIndex int, path string) error + func (sd *StreamDeck) FillPanel(img image.Image) error + func (sd *StreamDeck) FillPanelFromFile(path string) error + func (sd *StreamDeck) SetBtnEventCb(ev BtnEvent) + func (sd *StreamDeck) WriteText(btnIndex int, textBtn TextButton) error + type TextButton struct + BgColor color.Color + Lines []TextLine + type TextLine struct + Font *truetype.Font + FontColor color.Color + FontSize float64 + PosX int + PosY int + Text string