Documentation ¶
Index ¶
- Constants
- type Device
- func (d *Device) Clear() error
- func (d *Device) Close() error
- func (d *Device) ConvertImage(img image.Image) (*ImageData, error)
- func (d *Device) FirmwareVersion() (string, error)
- func (d *Device) Open() error
- func (d *Device) ReadKeys() (chan Key, error)
- func (d *Device) Reset() error
- func (d *Device) SetBrightness(percent uint8) error
- func (d *Device) SetConvertedImage(index uint8, imageData *ImageData) error
- func (d *Device) SetImage(index uint8, img image.Image) error
- type ImageData
- type Key
Constants ¶
View Source
const ( VID_ELGATO = 0x0fd9 PID_STREAMDECK = 0x0060 PID_STREAMDECK_V2 = 0x006d PID_STREAMDECK_MK2 = 0x0080 PID_STREAMDECK_MINI = 0x0063 PID_STREAMDECK_MINI_MK2 = 0x0090 PID_STREAMDECK_XL = 0x006c )
Stream Deck Vendor & Product IDs.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Columns uint8 Rows uint8 Keys uint8 Pixels uint DPI uint Padding uint // contains filtered or unexported fields }
Device represents a single Stream Deck device.
func (*Device) FirmwareVersion ¶
FirmwareVersion returns the firmware version of the device.
func (*Device) Open ¶
Open the device for input/output. This must be called before trying to communicate with the device.
func (*Device) ReadKeys ¶
ReadKeys returns a channel, which it will use to emit key presses/releases.
func (*Device) Reset ¶
Resets the Stream Deck, clears all button images and shows the standby image.
func (*Device) SetBrightness ¶
SetBrightness sets the background lighting brightness from 0 to 100 percent.
func (*Device) SetConvertedImage ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.