mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 10:10:53 +00:00
ESP-IDF Robot ESP NOW
This commit is contained in:
@@ -1 +1 @@
|
||||
d6faa013cd4cfad91320c61611d7921c /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/ESP-IDF_Robot.bin
|
||||
e23c2baad0ab41c7f474af0329bbf5e9 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/ESP-IDF_Robot.bin
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
2e8a36e03dae7d7af97ecd4075c04ae6a14ae100
|
||||
b864626f0ff61279c55212ab56f5ad412df77748
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -102,3 +102,21 @@
|
||||
7658 7783 1734904960416809040 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
21 192 1734905276456507324 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
21 192 1734905276456507324 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
16 180 1735008663144240778 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
16 180 1735008663144240778 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
23 289 1735008910558928471 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
23 289 1735008910558928471 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
33 543 1735009232414422862 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
33 543 1735009232414422862 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
11 166 1735009314813879769 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
11 166 1735009314813879769 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
11 138 1735009326120662978 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
11 138 1735009326120662978 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
15 150 1735009595758538290 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
15 150 1735009595758538290 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
17 169 1735009650898647852 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
17 169 1735009650898647852 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
18 270 1735009669233059850 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
18 270 1735009669233059850 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
14 141 1735009686062454811 esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
14 141 1735009686062454811 /home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size 7acf8864c66ce178
|
||||
|
@@ -3620,7 +3620,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_unscanned_ /home/abobkov/esp/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.3\" -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=\"ESP-IDF_Robot\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-590-g2e8\"
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.2.3\" -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=\"ESP-IDF_Robot\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-599-gb86\"
|
||||
DEP_FILE = esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj.d
|
||||
FLAGS = -march=rv32imc_zicsr_zifencei -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 -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot=. -fmacro-prefix-map=/home/abobkov/esp/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration
|
||||
INCLUDES = -I/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/config -I/home/abobkov/esp/esp-idf/components/esp_app_format/include -I/home/abobkov/esp/esp-idf/components/newlib/platform_include -I/home/abobkov/esp/esp-idf/components/freertos/config/include -I/home/abobkov/esp/esp-idf/components/freertos/config/include/freertos -I/home/abobkov/esp/esp-idf/components/freertos/config/riscv/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/abobkov/esp/esp-idf/components/freertos/esp_additions/include -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include/soc -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/abobkov/esp/esp-idf/components/heap/include -I/home/abobkov/esp/esp-idf/components/log/include -I/home/abobkov/esp/esp-idf/components/soc/include -I/home/abobkov/esp/esp-idf/components/soc/esp32c3 -I/home/abobkov/esp/esp-idf/components/soc/esp32c3/include -I/home/abobkov/esp/esp-idf/components/hal/platform_port/include -I/home/abobkov/esp/esp-idf/components/hal/esp32c3/include -I/home/abobkov/esp/esp-idf/components/hal/include -I/home/abobkov/esp/esp-idf/components/esp_rom/include -I/home/abobkov/esp/esp-idf/components/esp_rom/include/esp32c3 -I/home/abobkov/esp/esp-idf/components/esp_rom/esp32c3 -I/home/abobkov/esp/esp-idf/components/esp_common/include -I/home/abobkov/esp/esp-idf/components/esp_system/include -I/home/abobkov/esp/esp-idf/components/esp_system/port/soc -I/home/abobkov/esp/esp-idf/components/esp_system/port/include/riscv -I/home/abobkov/esp/esp-idf/components/esp_system/port/include/private -I/home/abobkov/esp/esp-idf/components/riscv/include -I/home/abobkov/esp/esp-idf/components/lwip/include -I/home/abobkov/esp/esp-idf/components/lwip/include/apps -I/home/abobkov/esp/esp-idf/components/lwip/include/apps/sntp -I/home/abobkov/esp/esp-idf/components/lwip/lwip/src/include -I/home/abobkov/esp/esp-idf/components/lwip/port/include -I/home/abobkov/esp/esp-idf/components/lwip/port/freertos/include -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include/sys
|
||||
|
@@ -1195,7 +1195,7 @@
|
||||
},
|
||||
{
|
||||
"directory": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build",
|
||||
"command": "/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\\\"v5.2.3\\\" -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=\\\"ESP-IDF_Robot\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-590-g2e8\\\" -I/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/config -I/home/abobkov/esp/esp-idf/components/esp_app_format/include -I/home/abobkov/esp/esp-idf/components/newlib/platform_include -I/home/abobkov/esp/esp-idf/components/freertos/config/include -I/home/abobkov/esp/esp-idf/components/freertos/config/include/freertos -I/home/abobkov/esp/esp-idf/components/freertos/config/riscv/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/abobkov/esp/esp-idf/components/freertos/esp_additions/include -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include/soc -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/abobkov/esp/esp-idf/components/heap/include -I/home/abobkov/esp/esp-idf/components/log/include -I/home/abobkov/esp/esp-idf/components/soc/include -I/home/abobkov/esp/esp-idf/components/soc/esp32c3 -I/home/abobkov/esp/esp-idf/components/soc/esp32c3/include -I/home/abobkov/esp/esp-idf/components/hal/platform_port/include -I/home/abobkov/esp/esp-idf/components/hal/esp32c3/include -I/home/abobkov/esp/esp-idf/components/hal/include -I/home/abobkov/esp/esp-idf/components/esp_rom/include -I/home/abobkov/esp/esp-idf/components/esp_rom/include/esp32c3 -I/home/abobkov/esp/esp-idf/components/esp_rom/esp32c3 -I/home/abobkov/esp/esp-idf/components/esp_common/include -I/home/abobkov/esp/esp-idf/components/esp_system/include -I/home/abobkov/esp/esp-idf/components/esp_system/port/soc -I/home/abobkov/esp/esp-idf/components/esp_system/port/include/riscv -I/home/abobkov/esp/esp-idf/components/esp_system/port/include/private -I/home/abobkov/esp/esp-idf/components/riscv/include -I/home/abobkov/esp/esp-idf/components/lwip/include -I/home/abobkov/esp/esp-idf/components/lwip/include/apps -I/home/abobkov/esp/esp-idf/components/lwip/include/apps/sntp -I/home/abobkov/esp/esp-idf/components/lwip/lwip/src/include -I/home/abobkov/esp/esp-idf/components/lwip/port/include -I/home/abobkov/esp/esp-idf/components/lwip/port/freertos/include -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -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 -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot=. -fmacro-prefix-map=/home/abobkov/esp/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 /home/abobkov/esp/esp-idf/components/esp_app_format/esp_app_desc.c",
|
||||
"command": "/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\\\"v5.2.3\\\" -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=\\\"ESP-IDF_Robot\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-599-gb86\\\" -I/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/config -I/home/abobkov/esp/esp-idf/components/esp_app_format/include -I/home/abobkov/esp/esp-idf/components/newlib/platform_include -I/home/abobkov/esp/esp-idf/components/freertos/config/include -I/home/abobkov/esp/esp-idf/components/freertos/config/include/freertos -I/home/abobkov/esp/esp-idf/components/freertos/config/riscv/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/abobkov/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/abobkov/esp/esp-idf/components/freertos/esp_additions/include -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include/soc -I/home/abobkov/esp/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/abobkov/esp/esp-idf/components/heap/include -I/home/abobkov/esp/esp-idf/components/log/include -I/home/abobkov/esp/esp-idf/components/soc/include -I/home/abobkov/esp/esp-idf/components/soc/esp32c3 -I/home/abobkov/esp/esp-idf/components/soc/esp32c3/include -I/home/abobkov/esp/esp-idf/components/hal/platform_port/include -I/home/abobkov/esp/esp-idf/components/hal/esp32c3/include -I/home/abobkov/esp/esp-idf/components/hal/include -I/home/abobkov/esp/esp-idf/components/esp_rom/include -I/home/abobkov/esp/esp-idf/components/esp_rom/include/esp32c3 -I/home/abobkov/esp/esp-idf/components/esp_rom/esp32c3 -I/home/abobkov/esp/esp-idf/components/esp_common/include -I/home/abobkov/esp/esp-idf/components/esp_system/include -I/home/abobkov/esp/esp-idf/components/esp_system/port/soc -I/home/abobkov/esp/esp-idf/components/esp_system/port/include/riscv -I/home/abobkov/esp/esp-idf/components/esp_system/port/include/private -I/home/abobkov/esp/esp-idf/components/riscv/include -I/home/abobkov/esp/esp-idf/components/lwip/include -I/home/abobkov/esp/esp-idf/components/lwip/include/apps -I/home/abobkov/esp/esp-idf/components/lwip/include/apps/sntp -I/home/abobkov/esp/esp-idf/components/lwip/lwip/src/include -I/home/abobkov/esp/esp-idf/components/lwip/port/include -I/home/abobkov/esp/esp-idf/components/lwip/port/freertos/include -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/abobkov/esp/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -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 -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot=. -fmacro-prefix-map=/home/abobkov/esp/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 /home/abobkov/esp/esp-idf/components/esp_app_format/esp_app_desc.c",
|
||||
"file": "/home/abobkov/esp/esp-idf/components/esp_app_format/esp_app_desc.c",
|
||||
"output": "esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj"
|
||||
},
|
||||
|
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": "ESP-IDF_Robot",
|
||||
"project_version": "ESP32-Node_Switch-v2.7-590-g2e8a36e0-dirty",
|
||||
"project_version": "ESP32-Node_Switch-v2.7-599-gb864626f-dirty",
|
||||
"project_path": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot",
|
||||
"idf_path": "/home/abobkov/esp/esp-idf",
|
||||
"build_dir": "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build",
|
||||
|
@@ -21,6 +21,9 @@
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "esp_now.h"
|
||||
//#include "espnow_utils.h"
|
||||
#include "esp_wifi.h"
|
||||
#include "esp_system.h"
|
||||
|
||||
static const char *TAG = "ESP IDF Robot";
|
||||
|
||||
@@ -187,6 +190,19 @@ static void ledc_init (void) {
|
||||
//ESP_ERROR_CHECK(ledc_update_duty(LEDC_MODE, LEDC_CHANNEL));
|
||||
}
|
||||
|
||||
static void app_wifi_init()
|
||||
{
|
||||
esp_event_loop_create_default();
|
||||
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
|
||||
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
|
||||
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
|
||||
ESP_ERROR_CHECK(esp_wifi_set_storage(WIFI_STORAGE_RAM));
|
||||
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));
|
||||
ESP_ERROR_CHECK(esp_wifi_start());
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
// Initialize LED
|
||||
@@ -223,6 +239,11 @@ void app_main(void)
|
||||
//configure_dc_mc();
|
||||
printf("Added button interrupt");
|
||||
|
||||
espnow_storage_init();
|
||||
app_wifi_init();
|
||||
espnow_config_t espnow_config = ESPNOW_INIT_CONFIG_DEFAULT();
|
||||
espnow_init(&espnow_config);
|
||||
|
||||
while (1) {
|
||||
ESP_LOGI(TAG, "Turning the LED %s!", s_led_state == true ? "ON" : "OFF");
|
||||
//blink_led();
|
||||
|
Reference in New Issue
Block a user