Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c Client) ClearAllKeys() error
- func (c Client) ClearKey(keyIdx int) error
- func (c Client) Close() error
- func (c Client) FillColor(keyIdx int, col color.RGBA) error
- func (c Client) FillImage(keyIdx int, img image.Image) error
- func (c Client) FillPanel(img image.RGBA) error
- func (c Client) GetFimwareVersion() (string, error)
- func (c Client) IconSize() int
- func (c Client) NumKeys() int
- func (c Client) ResetToLogo() error
- func (c Client) Serial() (string, error)
- func (c Client) SetBrightness(pct int) error
- func (c Client) Subscribe() <-chan Event
- type Event
- type EventType
Constants ¶
View Source
const ( // Streamdeck Original V2 (0fd9:006d) 15 keys StreamDeckOriginalV2 uint16 = 0x006d // Stremdeck XL (0fd9:006c) 32 keys StreamDeckXL uint16 = 0x006c // StreamDeck Mini (0fd9:0063) 6 keys StreamDeckMini uint16 = 0x0063 // StreamDeck Mini V2 (0fd9:0090) 6 keys StreamDeckMiniV2 uint16 = 0x0090 )
View Source
const VendorElgato = 0x0fd9
Variables ¶
View Source
var DeckToName = map[uint16]string{ StreamDeckOriginalV2: "StreamDeck Original V2", StreamDeckXL: "StreamDeck XL", StreamDeckMini: "StreamDeck Mini", StreamDeckMiniV2: "StreamDeck Mini V2", }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages the connection to the StreamDeck
func (Client) ClearAllKeys ¶
ClearAllKeys fills all keys with solid black
func (Client) GetFimwareVersion ¶
GetFimwareVersion retrieves the firmware version
func (Client) ResetToLogo ¶
ResetToLogo restores the original Elgato StreamDeck logo
func (Client) SetBrightness ¶
SetBrightness sets the brightness of the keys (0-100)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.