[riot-notifications] [RIOT-OS/RIOT] Driver for Honeywell HSC series pressure and temperature sensor (#15383)
notifications at github.com
Wed Nov 25 11:25:52 CET 2020
@quangphhr commented on this pull request.
> + int32_t ut = 0;
+ /* Read uncompensated temperature value */
+ _read_ut(dev, &ut);
+ /* Formular from section 4.0 in
+ * https://sensing.honeywell.com/i2c-comms-digital-output-pressure-sensors-tn-008201-3-en-final-30may12.pdf */
+ return (int16_t)(ut * 2000 / 2047 - 500);
+int32_t hsc_read_pressure(const hsc_t *dev)
+ int32_t up = 0;
+ /* Read uncompensated pressure value */
+ _read_up(dev, &up);
the pressure can be negative too, so I modified the function together with the temperature.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications