periph / devices

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

Add AHT20 sensor #68

Closed SoulKa closed 5 months ago

SoulKa commented 5 months ago

Implemented the AHT20 environmental sensor using the SenseEnv interface. Implementation is based on this Datasheet. Tested on a RaspberryPi with the AHT20 sensor.

Features:

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (bd7de1d) 61.6% compared to head (d998c15) 61.6%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #68 +/- ## ===================================== Coverage 61.6% 61.6% ===================================== Files 65 65 Lines 7442 7442 ===================================== Hits 4583 4583 Misses 2705 2705 Partials 154 154 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

SoulKa commented 5 months ago

Thanks for the fast reaction on this PR! I resolved your issue and the pipeline issues. Somehow, errors.Join() is not known during build. Is it not built with Go 1.20? At least that's what's written in the go.mod.

Should I add some tests using the bus mock as in bmxx80?

maruel commented 5 months ago

I try to keep compatibility with older version of Go since it's what is installed via apt-get install and users could be confused.