Documentation ¶
Index ¶
- Variables
- type StreamDeck
- func (deck *StreamDeck) Close()
- func (deck *StreamDeck) OnKeyChange(callback func(button int, state bool))
- func (deck *StreamDeck) OnKeyDown(callback func(button int, state bool))
- func (deck *StreamDeck) OnKeyUp(callback func(button int, state bool))
- func (deck *StreamDeck) Open() error
- func (deck *StreamDeck) Reset() error
- func (deck *StreamDeck) SetBrightness(brightness int) error
- func (deck *StreamDeck) WriteImageToKey(image *image.RGBA, key int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NUM_KEYS = 15 ICON_SIZE = 72 )
View Source
var ( NUM_FIRST_PAGE_PIXELS = 2583 NUM_SECOND_PAGE_PIXELS = 2601 )
Functions ¶
This section is empty.
Types ¶
type StreamDeck ¶
type StreamDeck struct { DeviceInfo hid.DeviceInfo Device *hid.Device // contains filtered or unexported fields }
func FindDecks ¶
func FindDecks() []*StreamDeck
func (*StreamDeck) Close ¶
func (deck *StreamDeck) Close()
func (*StreamDeck) OnKeyChange ¶
func (deck *StreamDeck) OnKeyChange(callback func(button int, state bool))
func (*StreamDeck) OnKeyDown ¶
func (deck *StreamDeck) OnKeyDown(callback func(button int, state bool))
func (*StreamDeck) OnKeyUp ¶
func (deck *StreamDeck) OnKeyUp(callback func(button int, state bool))
func (*StreamDeck) Open ¶
func (deck *StreamDeck) Open() error
func (*StreamDeck) Reset ¶
func (deck *StreamDeck) Reset() error
func (*StreamDeck) SetBrightness ¶
func (deck *StreamDeck) SetBrightness(brightness int) error
func (*StreamDeck) WriteImageToKey ¶
func (deck *StreamDeck) WriteImageToKey(image *image.RGBA, key int)
Click to show internal directories.
Click to hide internal directories.