zephyr/samples/sensor/co2_polling
Jeppe Odgaard 171dbd0435 samples: sensors: add generic co2 sensor polling
Add polling sample for any CO2 sensor.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2023-11-13 12:14:08 -05:00
..
boards
src
CMakeLists.txt
README.rst
prj.conf
sample.yaml

README.rst

.. co2:

Generic CO2 polling sample
##########################

Overview
********

A sensor sample that demonstrates how to poll a CO2 sensor.

Building and Running
********************

This sample reads the CO2 sensor and print the values continuously.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/co2_polling
   :board: <board to use>
   :goals: build flash
   :compact:

Sample Output
=============

.. code-block:: console

   CO2 940 ppm
   CO2 950 ppm

<repeats endlessly>