We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 650d283 + 7010268 commit 0d1bf2fCopy full SHA for 0d1bf2f
comms.go
@@ -136,6 +136,16 @@ func (d *Device) SetBrightness(pct int) error {
136
return nil
137
}
138
139
+// GetButtonImageSize returns the size of the images to uploaded to the buttons
140
+func (d* Device) GetButtonImageSize() image.Point {
141
+ return d.deviceType.imageSize
142
+}
143
+
144
+// GetNumButtonsOnDevice returns the number of button this device has
145
+func (d* Device) GetNumButtonsOnDevice() uint {
146
+ return d.deviceType.numberOfButtons
147
148
149
// ClearButtons writes a black square to all buttons
150
func (d *Device) ClearButtons() error {
151
numButtons := int(d.deviceType.numberOfButtons)
0 commit comments