diff --git a/waveshare213v2/waveshare213v2.go b/waveshare213v2/waveshare213v2.go index b4aad06..5cb539a 100644 --- a/waveshare213v2/waveshare213v2.go +++ b/waveshare213v2/waveshare213v2.go @@ -5,6 +5,7 @@ import ( "image" "image/color" "image/draw" + "strconv" "time" "periph.io/x/conn/v3" @@ -397,7 +398,7 @@ func (d *Dev) Halt() error { // String returns a string containing configuration information func (d *Dev) String() string { - return fmt.Sprintf("epd.Dev{%s, %s, %s, %s}", d.c, d.dc, d.opts.Height, d.opts.Width) + return fmt.Sprintf("epd.Dev{%s, %s, Height: %s, Width: %s}", d.c, d.dc, strconv.Itoa(d.opts.Height), strconv.Itoa(d.opts.Width)) } func (d *Dev) sendData(c []byte) error {