diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-12-27 19:45:24 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-12-27 19:45:24 +0100 |
commit | e4e5808040a2d6123ac1d783f63882b636f80ea0 (patch) | |
tree | 3af8c8b30f92968156e83ed5fd24cbecdce8b921 /src/driver | |
parent | edf4fd02a8b8875144948d388aa025fb5c4f56c0 (diff) |
max44006: remove unused red, green, blue, clear, ir class variables
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/max44006.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/max44006.cc b/src/driver/max44006.cc index b0df238..e0f6e98 100644 --- a/src/driver/max44006.cc +++ b/src/driver/max44006.cc @@ -59,6 +59,14 @@ uint16_t MAX44006::getTemperature() return 0; } + /* + * 13543 counts @ ~21c + * 13660 counts @ ~30c + * 14280 counts @ ~48c + * -> approx 27 counts / degc + * -> approx 12970 counts @ 0c + */ + // independent of AMBPGA setting, depends on AMBTIM return (((uint16_t)rxbuf[0] << 8) + rxbuf[1]); } |