Loading include/driver/max44006.h +1 −3 Original line number Diff line number Diff line Loading @@ -63,9 +63,7 @@ class MAX44006 { unsigned char txbuf[2]; unsigned char rxbuf[10]; AmbientConfig ambientConfig; uint16_t clear, red, green, blue, ir; unsigned char ambientConfig; public: Loading src/driver/max44006.cc +8 −0 Original line number Diff line number Diff line Loading @@ -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]); } Loading Loading
include/driver/max44006.h +1 −3 Original line number Diff line number Diff line Loading @@ -63,9 +63,7 @@ class MAX44006 { unsigned char txbuf[2]; unsigned char rxbuf[10]; AmbientConfig ambientConfig; uint16_t clear, red, green, blue, ir; unsigned char ambientConfig; public: Loading
src/driver/max44006.cc +8 −0 Original line number Diff line number Diff line Loading @@ -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]); } Loading