- Added ability to change sample resolution
- Added unit tests for TH02Driver. The way the functions are written,
it will be hard to get a fully working .Sample() coverage with my
limited understanding of gobot's testing API. The chip is rather needy,
and each sample requires multiple read and write steps, so getting both
read and write for 2 independant measurements it a little over my head
without some more code viewing.
Id rather get this checked in and think of a better way to do this.
Otherwise, this does test the functionality
Signed-off-by: npotts <npotts@users.noreply.github.com>
This commit adds basic support for a TH02 based Grove Sensor which is
silkscreened as
Temperature&Humidity Sensor (High-Accuracy & Mini ) v1.0
https://www.seeedstudio.com/Grove-Temperature-Humidity-Sensor-High-Accuracy-Min-p-1921.html
This is a modified variant of a SHT2* driver, and still needs some
changes to be more useable. It is written to assume you want to use the
High Precisions (slow sample rate)
Signed-off-by: npotts <npotts@users.noreply.github.com>