Skip to content

Commit 3f76b57

Browse files
committed
Added the SetBrightness function
The underlaying device already supported it, but there was no way to call it on a StreamDeck struct, as "dev" is private.
1 parent 15f1097 commit 3f76b57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

streamdeck.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,7 @@ func (sd *StreamDeck) updateButton(b Button) error {
114114
e := sd.dev.WriteRawImageToButton(b.GetButtonIndex(), img)
115115
return e
116116
}
117+
118+
func (sd *StreamDeck) SetBrightness(brightness int) {
119+
sd.dev.SetBrightness(brightness)
120+
}

0 commit comments

Comments
 (0)