Skip to content

SFeli/ESP32_IDF_BME280_02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP32_IDF_BME280_02

This example shows how to connect the Bosch BME280 - API BME280 to the new I2C - Master (ab 5.2)

Setup

How to use example

Set the Bord which you are using: e.g. Run `idf.py set-target esp32c3'

Note: For ESP32 - Board you can now user Platformio - since the ide supports the functions.

Configure the project

Open the project configuration menu (idf.py menuconfig). In the Example Configuration menu:

  • Set the connected PINs in the configuration.
    • Set I2C_MASTER_SCL.
    • Set I2C_MASTER_SDA.

Optional: If you need, change the other options according to your requirements.

Build and Flash

Build the project and flash it to the board, then run the monitor tool to view the serial output:

Run idf.py -p PORT flash monitor to build, flash and monitor the project.

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for all the steps to configure and use the ESP-IDF to build projects.

Example Output

Note that the output, in particular the order of the output, may vary depending on the environment.

Console output if the Sensor is connected and working: Setup

About

Connect Bosch BME280 - API to new I2C - Master (ab 5.2)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published