Sensor: adt7420

Overview

This sample application periodically (1Hz) measures the ambient temperature in degrees Celsius. The result is written to the console.

When configured in trigger mode the update interval is 5 s, and the sample maintains a |plusminus| 1 |deg| C window around a recent temperature. As soon as the temperature goes outside the window an interrupt causes the application to display an event and update the upper and lower window boundaries.

Requirements

Atmosic EVK <board | serial>

Building and Running

This sample is built from openair/samples/sensor/adt7420.

Build command:

west build -p always -b <BOARD>//ns openair/samples/sensor/adt7420 --sysbuild -T samples.bluetooth.adt7420.atm

Flash command:

west flash --skip-rebuild --device <DEVICE_ID> --jlink --fast_load [--erase_flash]