mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
e77a603ac3
commit
a0b0483796
@ -138,6 +138,7 @@ static esp_err_t i2c_driver_initialize(void)
|
||||
void app_main(void)
|
||||
{
|
||||
// CONNECT TO BMP280
|
||||
//
|
||||
ESP_ERROR_CHECK(i2c_driver_initialize());
|
||||
i2c_driver_install(I2C_NUM_0, I2C_MODE_MASTER, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0);
|
||||
uint8_t address = 0x76;
|
||||
|
@ -86,6 +86,8 @@ i2c_master_write_read_device(I2C_MASTER_NUM, 0x76, ®_addr, 1, data, len, I2C_
|
||||
|
||||
<img alt="BME-/BMP-280 Memory Map" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/BME280_BMP280_Registers.png" width="90%"/>
|
||||
|
||||
<img alt="BME-/BMP-280 I<sup>2</sup>C Read & Write" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/bme280_i2c_read-write.png" width="100%"/>
|
||||
|
||||
[^2]: https://www.bosch-sensortec.com/products/environmental-sensors/humidity-sensors-bme280/
|
||||
[^3]: https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp280/
|
||||
[^4]: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf
|
Loading…
x
Reference in New Issue
Block a user