mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
381e1c15d2
commit
1d9b43073b
@ -1 +1 @@
|
||||
db24f43d53b8427204eaeedd25d2c7bc C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/ESP32-IDF_BMP280.bin
|
||||
45402d83d488f1ce7a3c15edf02cd5a1 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/ESP32-IDF_BMP280.bin
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
767d1a8f58d61961f271c3a3248c0d9d51e036bf
|
||||
381e1c15d2ff7c065aa2adf8eb6d72b8cf466a6d
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -133,3 +133,5 @@
|
||||
50 366 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
84 315 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
84 315 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
34 240 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
34 240 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"project_name": "ESP32-IDF_BMP280",
|
||||
"project_version": "767d1a8-dirty",
|
||||
"project_version": "381e1c1-dirty",
|
||||
"project_path": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280",
|
||||
"idf_path": "C:/Users/alex/esp/v5.2.2/esp-idf",
|
||||
"build_dir": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build",
|
||||
@ -805,7 +805,7 @@
|
||||
"managed_reqs": [],
|
||||
"managed_priv_reqs": [],
|
||||
"file": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/esp-idf/main/libmain.a",
|
||||
"sources": [ "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/main/i2c_simple_main.c" ],
|
||||
"sources": [ "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/main/main.c" ],
|
||||
"include_dirs": [ "." ]
|
||||
},
|
||||
"mbedtls": {
|
||||
|
@ -1,2 +1,2 @@
|
||||
idf_component_register(SRCS "i2c_simple_main.c"
|
||||
idf_component_register(SRCS "bme280.c" "main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
|
0
ESP32-IDF_BMP280/main/bme280.c
Normal file
0
ESP32-IDF_BMP280/main/bme280.c
Normal file
16
ESP32-IDF_BMP280/main/bme280.h
Normal file
16
ESP32-IDF_BMP280/main/bme280.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef __BME280_H__
|
||||
#define __BME280_H__
|
||||
|
||||
#define BME280_CHIP_ID (0x60)
|
||||
#define BME280_I2C_ADDRESS1 (0x76) // BME280 Data sheet p. 32
|
||||
#define BME280_I2C_ADDRESS2 (0x77)
|
||||
|
||||
/** GLOBAL MEMORY MAN AND REGISTERS
|
||||
* BME280 Data Sheet p. 26
|
||||
* 0xD0 -> Chip ID -> 0x60 for BME280 or 0x56;0x58 for BMP280
|
||||
* 0xF5 -> Config -> 110 for 10ms or 111 for 20ms
|
||||
* 0xF7-0xF9 -> Pressure -> 16- to 20-bit resolution
|
||||
* 0xFA-0xFC -> Temperature -> 16- to 20-bit resolution
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user