Skip to content

Commit 76beb27

Browse files
committed
Merge branch 'master' of https://github.com/s00500/go-streamdeck
2 parents b28133d + bc97c28 commit 76beb27

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

devices/mini.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,18 @@ func init() {
7272
miniImageReportPayloadLength, // Amount of image payload allowed per USB packet
7373
GetImageHeaderMini, // Function to get the comms image header
7474
)
75+
streamdeck.RegisterDevicetype(
76+
miniName, // Name
77+
image.Point{X: int(miniButtonWidth), Y: int(miniButtonHeight)}, // Width/height of a button
78+
0x90, // USB productID
79+
resetPacket17(), // Reset packet
80+
6, // Number of buttons
81+
2, // Number of rows
82+
3, // Number of cols
83+
brightnessPacket17(), // Brightness packet
84+
1, // Button read offset
85+
"BMP", // Image format
86+
miniImageReportPayloadLength, // Amount of image payload allowed per USB packet
87+
GetImageHeaderMini, // Function to get the comms image header
88+
)
7589
}

0 commit comments

Comments
 (0)