periph / devices

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

videosink: Implement rate-limiting, keep-alive #43

Closed hansmi closed 2 years ago

hansmi commented 2 years ago

Resolve the remaining two TODOs by adding an upper limit on the frame rate (defaults to 15 per second) and sending an image every once in a while even when there were no changes (defaults to once a minute).

Fixes #26.

codecov-commenter commented 2 years ago

Codecov Report

Merging #43 (c4778d7) into main (1b1970b) will increase coverage by 0.3%. The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main     #43     +/-   ##
=======================================
+ Coverage   63.4%   63.8%   +0.3%     
=======================================
  Files         56      56             
  Lines       6706    6748     +42     
=======================================
+ Hits        4254    4302     +48     
+ Misses      2309    2304      -5     
+ Partials     143     142      -1     
Impacted Files Coverage Δ
videosink/display.go 91.7% <100.0%> (+1.7%) :arrow_up:
videosink/handler.go 86.4% <100.0%> (+3.9%) :arrow_up:
hx711/hx711.go 75.0% <0.0%> (+5.6%) :arrow_up:

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 1b1970b...c4778d7. Read the comment docs.