• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-1814

src/04-Jan-2025-3421

CMakeLists.txtD04-Jan-2025193 85

README.rstD04-Jan-2025576 3221

prj.confD04-Jan-2025136 87

sample.yamlD04-Jan-2025196 1110

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