Lines Matching +full:sample +full:- +full:clk
1 .. zephyr:code-sample:: bme280
3 :relevant-api: sensor_interface
10 This sample shows how to use the Zephyr :ref:`sensor` API driver for the
14 https://www.bosch-sensortec.com/products/environmental-sensors/humidity-sensors-bme280/
16 The sample periodically reads temperature, pressure and humidity data from the
17 first available BME280 device discovered in the system. The sample checks the
23 The sample can be configured to support BME280 sensors connected via either I2C
24 or SPI. Configuration is done via :ref:`devicetree <dt-guide>`. The devicetree
34 https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf
36 Boards with a built-in BME280
42 .. zephyr-app-commands::
43 :zephyr-app: samples/sensor/bme280
53 .. zephyr-app-commands::
54 :zephyr-app: samples/sensor/bme280
56 :gen-args: -DDTC_OVERLAY_FILE=arduino_spi.overlay
59 works on any board with a properly configured Arduino pin-compatible SPI
68 .. zephyr-app-commands::
69 :zephyr-app: samples/sensor/bme280
71 :gen-args: -DDTC_OVERLAY_FILE=arduino_i2c.overlay
74 works on any board with a properly configured Arduino pin-compatible I2C
80 The default assignment of the built-in spi0 device on the :zephyr:board:`rpi_pico` is
84 .. zephyr-app-commands::
85 :zephyr-app: samples/sensor/bme280
94 .. zephyr-app-commands::
95 :zephyr-app: samples/sensor/bme280
98 :gen-args: -DDTC_OVERLAY_FILE=rpi_pico_spi_pio.overlay
100 Note that miso-gpios, mosi-gpios, and clk-gpios need to be assigned to the
101 selected PIO device in pinctrl, while cs-gpios should not; chip select is
105 Board-specific overlays
109 a board-specific devicetree overlay adding one in the :file:`boards` directory.
117 overlay provided with this sample:
119 .. zephyr-app-commands::
120 :zephyr-app: samples/sensor/bme280
124 Sample Output
127 The sample prints output to the serial console. BME280 device driver messages
134 .. code-block:: none
141 *** Booting Zephyr OS build zephyr-v2.4.0-2940-gbb732ada394f ***
150 .. code-block:: none
158 *** Booting Zephyr OS build zephyr-v2.4.0-2940-gbb732ada394f ***