waveshare213v2: Use correct row size for clearing

Commit ecc1eed contained a typo: the rows of data sent for clearing the
display were sized for the height instead of the width.
pull/39/head
Michael Hanselmann 4 years ago
parent 3f04297792
commit b590a6ef60

@ -261,7 +261,7 @@ func (d *Dev) Clear(color byte) error {
eh.sendCommand(writeRAMBW)
data := bytes.Repeat([]byte{color}, spec.MemRect.Dy())
data := bytes.Repeat([]byte{color}, spec.MemRect.Dx())
for y := 0; y < spec.MemRect.Max.Y; y++ {
eh.sendData(data)

Loading…
Cancel
Save