Skip to content

Commit 1181fb1

Browse files
Nathan HüskenNathan Huesken
authored andcommitted
Add option to return image size for the current device
1 parent 6f7e604 commit 1181fb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

comms.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ func (d *Device) SetBrightness(pct int) {
132132
d.fd.SendFeatureReport(payload)
133133
}
134134

135+
// GetButtonImageSize returns the size of the images to uploaded to the buttons
136+
func (d* Device) GetButtonImageSize() image.Point {
137+
return d.deviceType.imageSize
138+
}
139+
135140
// ClearButtons writes a black square to all buttons
136141
func (d *Device) ClearButtons() {
137142
numButtons := int(d.deviceType.numberOfButtons)

0 commit comments

Comments
 (0)