periph / devices

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

waveshare2in13v2: Add constants, add missing init to example #25

Closed hansmi closed 2 years ago

hansmi commented 2 years ago

Translate magic numbers to named constants based on datasheet and add missing calls to dev.Init in example code.

codecov-commenter commented 2 years ago

Codecov Report

Merging #25 (1da7077) into main (7836991) will increase coverage by 0.0%. The diff coverage is 0.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main     #25   +/-   ##
=====================================
  Coverage   60.3%   60.3%           
=====================================
  Files         48      48           
  Lines       6454    6453    -1     
=====================================
  Hits        3893    3893           
+ Misses      2426    2425    -1     
  Partials     135     135           
Impacted Files Coverage Δ
waveshare2in13v2/waveshare213v2.go 0.0% <0.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 7836991...1da7077. Read the comment docs.

maruel commented 2 years ago

Thanks!