periph / devices

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

waveshare2in13v2: Add function for deep sleep, update both buffers on clear #42

Closed hansmi closed 2 years ago

hansmi commented 2 years ago

Add a named constant for the previously unknown 0x37 command, tweak when hardware is enabled, add a function to put display to sleep and clear both buffers.

codecov-commenter commented 2 years ago

Codecov Report

Merging #42 (8d6bc97) into main (3650bc7) will decrease coverage by 0.1%. The diff coverage is 55.6%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main     #42     +/-   ##
=======================================
- Coverage   63.6%   63.5%   -0.1%     
=======================================
  Files         56      56             
  Lines       6727    6706     -21     
=======================================
- Hits        4279    4260     -19     
+ Misses      2307    2304      -3     
- Partials     141     142      +1     
Impacted Files Coverage Δ
waveshare2in13v2/waveshare213v2.go 0.0% <0.0%> (ø)
waveshare2in13v2/drawing.go 96.3% <82.4%> (-3.7%) :arrow_down:
waveshare2in13v2/controller.go 100.0% <100.0%> (ø)

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 3650bc7...8d6bc97. Read the comment docs.