Skip to content

Commit 98d5f68

Browse files
authored
Merge pull request magicmonkey#28 from derickr/add-set-brightness
Added the SetBrightness function
2 parents 15f1097 + 3f76b57 commit 98d5f68

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)