yanbe / bme280-esp-idf-i2c

Sample code for reading values from a BME280 temperature-humidity-pressure sensor, via ESP-IDF's I2C master driver, supports both normal mode and forced mode described in the datasheet. https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf
Apache License 2.0
42 stars 17 forks source link

I2C_MODE_MASTER not defined ??? #5

Closed itofficeeu closed 4 years ago

itofficeeu commented 4 years ago

Am I looking at the wrong places?

I can't find the definition of I2C_MODE_MASTER any where.

itofficeeu commented 4 years ago

Well, maybe it does not need a definition to run?

itofficeeu commented 4 years ago

The I2C implementation is part of the ESP32 framework, not 'bme280-esp-idf-i2c'.

Take a look here regards this:

https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/i2c.html

It says "I2C mode - select either slave or master from i2c_mode_t".