1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00

2 Commits

Author SHA1 Message Date
Thomas Kohler
2476bd9541 BUGFIX/Improvement: TH02 wrong register for heater, use i2c.Driver 2022-10-02 15:47:41 +02:00
npotts
bdca7a67c9 Adde unit tests for TH02 & Minor improvement
- 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>
2019-05-22 11:34:39 +02:00