mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
761addd337
commit
cd849fbcad
@ -1 +1 @@
|
||||
d8dc450d1ee5fc31eddc2fb0f97e77a7 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/ESP32-IDF_BMP280.bin
|
||||
a5045d77b01b5de6a0a21e1b2cbedc6c 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 @@
|
||||
f3788d8eb536ef25a3bfc9baabe5e50f74bff31d
|
||||
761addd3373af72aabb02d16ab2cf78925beae96
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -115,3 +115,19 @@
|
||||
38 325 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
44 254 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
44 254 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
62 449 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
62 449 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
57 301 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
57 301 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
50 243 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
50 243 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
40 230 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
40 230 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
45 210 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
45 210 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
41 284 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
41 284 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
48 232 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
48 232 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
50 366 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
50 366 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
|
@ -3752,7 +3752,7 @@ build esp-idf/esp_bootloader_format/install/strip: phony esp-idf/esp_bootloader_
|
||||
build cmake_object_order_depends_target___idf_esp_app_format: phony || cmake_object_order_depends_target___idf_bootloader_support
|
||||
|
||||
build esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj: C_COMPILER____idf_esp_app_format_ C$:/Users/alex/esp/v5.2.2/esp-idf/components/esp_app_format/esp_app_desc.c || cmake_object_order_depends_target___idf_esp_app_format
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.2.2\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"ESP32-IDF_BMP280\" -DPROJECT_VER=\"f3788d8-dirty\"
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.2.2\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"ESP32-IDF_BMP280\" -DPROJECT_VER=\"761addd-dirty\"
|
||||
DEP_FILE = esp-idf\esp_app_format\CMakeFiles\__idf_esp_app_format.dir\esp_app_desc.c.obj.d
|
||||
FLAGS = -mlongcalls -Wno-frame-address -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -fmacro-prefix-map=C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280=. -fmacro-prefix-map=C:/Users/alex/esp/v5.2.2/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration
|
||||
INCLUDES = -IC:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/config -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_app_format/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/newlib/platform_include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/include/freertos -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/esp_additions/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include/soc -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/alex/esp/v5.2.2/esp-idf/components/heap/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/log/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/platform_port/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/include/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_common/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/port/soc -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/port/include/private -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/deprecated_include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include/apps -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include/apps/sntp -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/lwip/src/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/freertos/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include/sys
|
||||
|
@ -1066,7 +1066,7 @@
|
||||
},
|
||||
{
|
||||
"directory": "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build",
|
||||
"command": "C:\\Users\\alex\\.espressif\\tools\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\\\"v5.2.2\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"ESP32-IDF_BMP280\\\" -DPROJECT_VER=\\\"f3788d8-dirty\\\" -IC:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/config -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_app_format/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/newlib/platform_include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/include/freertos -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/esp_additions/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include/soc -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/alex/esp/v5.2.2/esp-idf/components/heap/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/log/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/platform_port/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/include/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_common/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/port/soc -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/port/include/private -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/deprecated_include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include/apps -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include/apps/sntp -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/lwip/src/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/freertos/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include/sys -mlongcalls -Wno-frame-address -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -fmacro-prefix-map=C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280=. -fmacro-prefix-map=C:/Users/alex/esp/v5.2.2/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj -c C:\\Users\\alex\\esp\\v5.2.2\\esp-idf\\components\\esp_app_format\\esp_app_desc.c",
|
||||
"command": "C:\\Users\\alex\\.espressif\\tools\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\\\"v5.2.2\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"ESP32-IDF_BMP280\\\" -DPROJECT_VER=\\\"761addd-dirty\\\" -IC:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/config -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_app_format/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/newlib/platform_include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/include/freertos -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/config/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -IC:/Users/alex/esp/v5.2.2/esp-idf/components/freertos/esp_additions/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include/soc -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/alex/esp/v5.2.2/esp-idf/components/heap/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/log/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/soc/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/platform_port/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/hal/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/include/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_rom/esp32 -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_common/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/port/soc -IC:/Users/alex/esp/v5.2.2/esp-idf/components/esp_system/port/include/private -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/esp32/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/xtensa/deprecated_include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include/apps -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/include/apps/sntp -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/lwip/src/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/freertos/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include/arch -IC:/Users/alex/esp/v5.2.2/esp-idf/components/lwip/port/esp32xx/include/sys -mlongcalls -Wno-frame-address -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -fmacro-prefix-map=C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280=. -fmacro-prefix-map=C:/Users/alex/esp/v5.2.2/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf\\esp_app_format\\CMakeFiles\\__idf_esp_app_format.dir\\esp_app_desc.c.obj -c C:\\Users\\alex\\esp\\v5.2.2\\esp-idf\\components\\esp_app_format\\esp_app_desc.c",
|
||||
"file": "C:\\Users\\alex\\esp\\v5.2.2\\esp-idf\\components\\esp_app_format\\esp_app_desc.c"
|
||||
},
|
||||
{
|
||||
|
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": "f3788d8-dirty",
|
||||
"project_version": "761addd-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",
|
||||
|
@ -85,11 +85,14 @@ void app_main(void)
|
||||
ESP_LOGI(TAG, "I2C initialized successfully");
|
||||
|
||||
/* Read the MPU9250 WHO_AM_I register, on power up the register should have the value 0x71 */
|
||||
ESP_ERROR_CHECK(mpu9250_register_read(MPU9250_WHO_AM_I_REG_ADDR, data, 1));
|
||||
|
||||
int read = i2c_master_read_from_device(0, 0x76, data, 64, I2C_MASTER_TIMEOUT_MS / portTICK_PERIOD_MS);
|
||||
//int read = i2c_master_write_read_device(0, 0x76, 0xD0, 1, data, 1024, I2C_MASTER_TIMEOUT_MS / portTICK_PERIOD_MS);
|
||||
//ESP_ERROR_CHECK(mpu9250_register_read(MPU9250_WHO_AM_I_REG_ADDR, data, 1));
|
||||
ESP_LOGI(TAG, "WHO_AM_I = %X", data[0]);
|
||||
|
||||
/* Demonstrate writing by reseting the MPU9250 */
|
||||
ESP_ERROR_CHECK(mpu9250_register_write_byte(MPU9250_PWR_MGMT_1_REG_ADDR, 1 << MPU9250_RESET_BIT));
|
||||
//ESP_ERROR_CHECK(mpu9250_register_write_byte(MPU9250_PWR_MGMT_1_REG_ADDR, 1 << MPU9250_RESET_BIT));
|
||||
|
||||
ESP_ERROR_CHECK(i2c_driver_delete(I2C_MASTER_NUM));
|
||||
ESP_LOGI(TAG, "I2C de-initialized successfully");
|
||||
|
Loading…
Reference in New Issue
Block a user