zephyr/samples/sensor/co2_polling
Gerard Marull-Paretas d4a67e321b samples, tests: remove usage of space-separated lists
Convert them to native YAML lists. Support for space-separated
lists was deprecated in Twister a long time ago.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2024-12-04 14:14:53 -05:00
..
boards
src
CMakeLists.txt
prj.conf
README.rst
sample.yaml samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05: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>