You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Designed for and tested with Ubuntu, Go 1.13+ and a Streamdeck XL. Images are the wrong size for other streamdecks; bug reports and patches are welcome!_
8
+
9
+
## Installation
10
+
11
+
Either include the library in your project or install it with the following command:
12
+
13
+
```
14
+
go get github.com/magicmonkey/go-streamdeck
15
+
```
16
+
17
+
## Usage
18
+
5
19
There are 2 ways to use this: the low-level "comms-oriented" interface (using `streamdeck.Open`) which wraps the USB HID protocol, or the higher-level "button-oriented" interface (using `streamdeck.New`) which represents buttons and actions.
6
20
7
21
If you want to implement your own actions, I suggest that you either instantiate a `CustomAction` or alternatively implement the `ButtonActionHandler` interface (basing your code on the `CustomerAction`).
8
22
9
-
Example high-level usage:
23
+
### Example high-level usage
24
+
25
+
High level usage gives some helpers to set up buttons. This example has a few things to look at:
26
+
27
+
* A button in position 2 that says "Hi world" and prints to the console when pressed
28
+
29
+
* A button in position 7 displaying the number 7 - changes to number 8 when pressed.
30
+
31
+
* A yellow button in position 26
32
+
33
+
* A purple button in position 27, it changes colour _and_ prints to the console when pressed.
This is a very new project but all feedback, comments, questions and patches are more than welcome. Please get in touch by opening an issue, it would be good to hear who is using the project and how things are going.
0 commit comments