periph / devices

Go·Hardware·Lean - Device drivers
https://periph.io
Apache License 2.0
85 stars 42 forks source link

waveshare2in13v2: Support rotation of image #46

Closed hansmi closed 2 years ago

hansmi commented 2 years ago

A new option named Origin controls which of the four corners of the display should be used as the (0,0) position for the image. The included unittests may seem excessive, but they are the result of many off-by-one errors and other mistakes I made while developing this series.

codecov-commenter commented 2 years ago

Codecov Report

Merging #46 (2ee68f7) into main (394037d) will increase coverage by 0.4%. The diff coverage is 96.4%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main     #46     +/-   ##
=======================================
+ Coverage   64.1%   64.4%   +0.4%     
=======================================
  Files         56      56             
  Lines       6740    6821     +81     
=======================================
+ Hits        4317    4393     +76     
- Misses      2279    2284      +5     
  Partials     144     144             
Impacted Files Coverage Δ
waveshare2in13v2/waveshare213v2.go 28.9% <84.6%> (+6.8%) :arrow_up:
waveshare2in13v2/drawing.go 97.8% <100.0%> (+2.0%) :arrow_up:
ads1x15/ads1x15.go 82.5% <0.0%> (-0.7%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 394037d...2ee68f7. Read the comment docs.