zephyr/samples/sensor
Peter A. Bigot f05cbb421d drivers: sensor: mcp9808: fix various problems and improve test
Correct handling of device encoded temperature values, which combine a
12-bit 2s complement signed value with a separate sign bit.  Rework
conversion between device and sensor temperature representations to
support negative temperatures in both domains.

Use a much simpler trigger configuration where the alert is driven by
comparator output, rather than as an interrupt that requires a pair of
I2C transactions to read and clear the flag.

Refactor the trigger infrastructure to use the setup/handle/process
idiom, which reduces duplicated code and to correctly detect alerts
present when the triggers are set.

Completely replace the sample with something that demonstrates
updating upper and lower threshold values to track moving
temperatures.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2020-01-08 20:33:51 -05:00
..
adt7420 samples: sensor: adt7420: rework for trigger testing 2020-01-08 16:38:43 +01:00
adxl362
adxl372
amg88xx
ams_iAQcore tests: fix test identifiers 2019-12-09 15:53:44 -05:00
apds9960
bme280
bme680 tests: fix test identifiers 2019-12-09 15:53:44 -05:00
bmg160 sensor: bmg160: Convert to DTS 2019-11-08 07:44:54 -06:00
bmm150 sensor: bmm150: Convert to DTS 2019-11-08 07:44:54 -06:00
ccs811
dht samples: sensor: dht: add sample 2019-12-19 06:43:37 -06:00
ens210 tests: fix test identifiers 2019-12-09 15:53:44 -05:00
fxas21002
fxos8700
fxos8700-hid usb: api: Add user device status callback 2019-12-19 13:08:55 +01:00
grove_light
grove_temperature
hmc5883l sensor: hmc5883l: convert to device tree 2019-11-08 12:12:38 -06:00
hts221
isl29035 samples: sensors: isl29035: add sample 2019-12-18 15:07:02 -06:00
lis2dh
lps22hb doc: fix LPS22HB doc indentation 2019-11-20 17:47:20 -05:00
lps22hh samples: sensor: lps22hh: add standalone sample 2019-12-20 20:25:11 -05:00
lsm6dsl global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
lsm303dlhc
magn_polling sensor: bmc150_magn: Convert to DTS 2019-11-08 07:44:54 -06:00
max30101
max44009 sensor: max44009: Convert to DTS 2019-11-08 07:44:54 -06:00
mcp9808 drivers: sensor: mcp9808: fix various problems and improve test 2020-01-08 20:33:51 -05:00
mpu6050 samples: sensor: mpu6050: convert to devicetree 2020-01-08 16:40:04 +01:00
ms5837
sensor_shell samples: sensor: fix test identifier 2019-12-20 10:35:13 -05:00
sht3xd global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
sx9500 sensor: sx9500: Convert to DTS 2019-11-08 07:44:54 -06:00
th02 sensor: th02: Convert to DTS 2019-11-08 07:44:54 -06:00
thermometer
ti_hdc tests: fix test identifiers 2019-12-09 15:53:44 -05:00
tmp112 sensor: tmp112: Convert to DTS 2019-11-08 07:44:54 -06:00
tmp116 tests: fix test identifiers 2019-12-09 15:53:44 -05:00
vl53l0x
sensor.rst