zephyr/samples/sensor/co2_polling
Anas Nashif 91c012ca12 samples: co2: fix filtering and use integration_platforms
This sample was filtered out completely, use integration platforms and
removee wrong depends_on.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-11 11:35:15 +01:00
..
boards
src
CMakeLists.txt
prj.conf
README.rst
sample.yaml samples: co2: fix filtering and use integration_platforms 2025-03-11 11:35:15 +01:00

.. zephyr:code-sample:: co2
   :name: Generic CO2 polling sample
   :relevant-api: sensor_interface

   Get CO2 data from a sensor (polling mode).

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>