• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..22-Aug-2025-

boards/22-Aug-2025-

src/22-Aug-2025-

CMakeLists.txt A D22-Aug-2025200 85

README.rst A D22-Aug-2025607 3221

prj.conf A D22-Aug-2025143 87

sample.yaml A D22-Aug-2025193 109

README.rst

1.. zephyr:code-sample:: co2
2   :name: Generic CO2 polling sample
3   :relevant-api: sensor_interface
4
5   Get CO2 data from a sensor (polling mode).
6
7Overview
8********
9
10A sensor sample that demonstrates how to poll a CO2 sensor.
11
12Building and Running
13********************
14
15This sample reads the CO2 sensor and print the values continuously.
16
17.. zephyr-app-commands::
18   :zephyr-app: samples/sensor/co2_polling
19   :board: <board to use>
20   :goals: build flash
21   :compact:
22
23Sample Output
24=============
25
26.. code-block:: console
27
28   CO2 940 ppm
29   CO2 950 ppm
30
31<repeats endlessly>
32