Skip to content

Commit 0d1bf2f

Browse files
authored
Merge pull request #43 from RudolfVonKrugstein/feature/get-more-device-information
Get more device information
2 parents 650d283 + 7010268 commit 0d1bf2f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

comms.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ func (d *Device) SetBrightness(pct int) error {
136136
return nil
137137
}
138138

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+
139149
// ClearButtons writes a black square to all buttons
140150
func (d *Device) ClearButtons() error {
141151
numButtons := int(d.deviceType.numberOfButtons)

0 commit comments

Comments
 (0)