streamdeck

package
v2.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL