You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devices/waveshare2in13v2
Michael Hanselmann ecc1eed386 waveshare213v2: Add support for partial drawing
When the destination rectangle didn't start at (0,0) or cover the whole
display the Dev.Draw function would continue to update the display in
full. Obviously that didn't result in a good output.

This change updates the drawing logic to only update the affected area
(aligned to whole bytes on the horizontal axis) and limits the amount of
transferred data to the minimum needed to cover the destination
rectangle.

The calculation of the various offsets as well as the function sending
the image data are written to support unittesting.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago
..
doc.go Separate waveshare2in13v2 driver (#2) 5 years ago
drawing.go waveshare213v2: Add support for partial drawing 4 years ago
drawing_test.go waveshare213v2: Add support for partial drawing 4 years ago
errorhandler.go waveshare213v2: Move code waiting for idle state to error handler 4 years ago
example_test.go Remove dependencies on fogleman/gg and golang/freetype (#28) 5 years ago
waveshare213v2.go waveshare213v2: Add support for partial drawing 4 years ago