mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
fe3d05d1d4
commit
b5b2b35618
@ -1 +1 @@
|
||||
6ecf4a26fd5aa426cd138b5ef364c3b6 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/ESP32-IDF_BMP280.bin
|
||||
e2387da7910c967b4e9c8b29c86154fa 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 @@
|
||||
d302ae2f6be09b4ccde7b90e5fad7f35415f69be
|
||||
fe3d05d1d430724b10db06e53adb3a8dea6ae0dc
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -173,3 +173,13 @@
|
||||
38 212 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
37 201 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
37 201 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
41 299 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
41 299 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
40 227 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
40 227 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
54 247 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
54 247 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
43 195 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
43 195 0 C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
37 204 0 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 29d6c89823153d61
|
||||
37 204 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=\"d302ae2-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=\"fe3d05d-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=\\\"d302ae2-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=\\\"fe3d05d-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": "d302ae2-dirty",
|
||||
"project_version": "fe3d05d-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",
|
||||
|
@ -105,18 +105,18 @@ static esp_err_t i2c_master_init(void)
|
||||
|
||||
static esp_err_t i2c_driver_initialize(void)
|
||||
{
|
||||
/*i2c_config_t conf = {
|
||||
i2c_config_t conf = {
|
||||
.mode = I2C_MODE_MASTER,
|
||||
.sda_io_num = GPIO_NUM_21,
|
||||
.sda_pullup_en = GPIO_PULLUP_ENABLE,
|
||||
.scl_io_num = GPIO_NUM_22,
|
||||
.sda_pullup_en = GPIO_PULLUP_ENABLE,
|
||||
.master.clk_speed = 10000,
|
||||
.master.clk_speed = I2C_MASTER_FREQ_HZ,
|
||||
};
|
||||
|
||||
return i2c_param_config(0, &conf);*/
|
||||
return i2c_param_config(0, &conf);
|
||||
|
||||
int i2c_master_port = 0;
|
||||
/*int i2c_master_port = 0;
|
||||
|
||||
i2c_config_t conf = {
|
||||
.mode = I2C_MODE_MASTER,
|
||||
@ -129,24 +129,24 @@ static esp_err_t i2c_driver_initialize(void)
|
||||
|
||||
i2c_param_config(i2c_master_port, &conf);
|
||||
|
||||
return i2c_driver_install(i2c_master_port, conf.mode, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0);
|
||||
return i2c_driver_install(i2c_master_port, conf.mode, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0);*/
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
ESP_ERROR_CHECK(i2c_master_init());
|
||||
|
||||
//i2c_driver_install(0, I2C_MODE_MASTER, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0);
|
||||
//i2c_driver_initialize();
|
||||
i2c_driver_install(I2C_NUM_0, I2C_MODE_MASTER, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0);
|
||||
i2c_driver_initialize();
|
||||
uint8_t address = 76;
|
||||
|
||||
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(0, command, 50 / portTICK_PERIOD_MS);
|
||||
esp_err_t cmd_ret = i2c_master_cmd_begin(I2C_NUM_0, command, 50 / portTICK_PERIOD_MS);
|
||||
i2c_cmd_link_delete(command);
|
||||
i2c_driver_delete(0);
|
||||
i2c_driver_delete(I2C_NUM_0);
|
||||
|
||||
if (cmd_ret == ESP_OK)
|
||||
ESP_LOGI(TAG, "I2C device found");
|
||||
|
Loading…
Reference in New Issue
Block a user