This commit is contained in:
Alexander 2024-07-08 19:26:44 -04:00
parent ddd3be2fc9
commit c6b83dae1c
16 changed files with 2473 additions and 2356 deletions

View File

@ -1 +1 @@
205f0ef616da1e6d62204fb1e89d6348 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/ESP32-IDF_BMP280.bin
6fd855cf00127ed0f908aef653e3215f 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

View File

@ -1 +1 @@
b5b2b356189e5541e0c39f58de548b0bbfbf1cf9
ddd3be2fc93bc9362eeb0c8473345d3994a6d5a0

File diff suppressed because one or more lines are too long

View File

@ -185,3 +185,17 @@
37 204 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
63 242 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
63 242 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
28 209 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
28 209 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
39 193 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
39 193 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
41 200 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
41 200 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
41 193 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
41 193 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
42 202 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
42 202 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
38 188 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
38 188 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
42 286 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
42 286 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61

View File

@ -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=\"b5b2b35-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=\"ddd3be2-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

View File

@ -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=\\\"b5b2b35-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=\\\"ddd3be2-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"
},
{

View File

@ -1,7 +1,7 @@
{
"version": "1.1",
"project_name": "ESP32-IDF_BMP280",
"project_version": "b5b2b35-dirty",
"project_version": "ddd3be2-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",

View File

@ -105,6 +105,8 @@ static esp_err_t i2c_master_init(void)
static esp_err_t i2c_driver_initialize(void)
{
int i2c_master_port = 0;
i2c_config_t conf = {
.mode = I2C_MODE_MASTER,
.sda_io_num = GPIO_NUM_21,
@ -112,9 +114,10 @@ static esp_err_t i2c_driver_initialize(void)
.scl_io_num = GPIO_NUM_22,
.sda_pullup_en = GPIO_PULLUP_ENABLE,
.master.clk_speed = I2C_MASTER_FREQ_HZ,
.clk_flags= 0,
};
return i2c_param_config(0, &conf);
return i2c_param_config(i2c_master_port, &conf);
/*int i2c_master_port = 0;
@ -134,23 +137,23 @@ static esp_err_t i2c_driver_initialize(void)
void app_main(void)
{
//i2c_driver_initialize();
ESP_ERROR_CHECK(i2c_master_init());
ESP_ERROR_CHECK(i2c_driver_initialize());
//ESP_ERROR_CHECK(i2c_master_init());
i2c_driver_install(I2C_NUM_0, I2C_MODE_MASTER, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0);
uint8_t address = 76;
uint8_t address = 0x76;
i2c_cmd_handle_t command = i2c_cmd_link_create();
i2c_master_start(command);
i2c_master_write_byte(command, (address << 1) | I2C_MASTER_WRITE, 0x1); // 0x1 -> checl ACK from slave
i2c_master_stop(command);
esp_err_t cmd_ret = i2c_master_cmd_begin(I2C_NUM_0, command, 50 / portTICK_PERIOD_MS);
esp_err_t cmd_ret = i2c_master_cmd_begin(I2C_NUM_0, command, 1000 / portTICK_PERIOD_MS);
i2c_cmd_link_delete(command);
i2c_driver_delete(I2C_NUM_0);
if (cmd_ret == ESP_OK)
ESP_LOGI(TAG, "I2C device found");
ESP_LOGI(TAG, "I2C device found at address %X", address);
else
ESP_LOGI(TAG, "error %X", cmd_ret);