From 76325bad3f7d3311aa48a3c4aecc1fb531226d3f Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sun, 22 Dec 2024 13:23:59 -0500 Subject: [PATCH] ESP IDF Robot --- ESP-IDF_Robot/build/.ninja_lock | 0 ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD | 2 +- ESP-IDF_Robot/build/CMakeFiles/git-data/grabRef.cmake | 2 +- ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref | 2 +- ESP-IDF_Robot/main/blink_example_main.c | 7 ++++++- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 ESP-IDF_Robot/build/.ninja_lock diff --git a/ESP-IDF_Robot/build/.ninja_lock b/ESP-IDF_Robot/build/.ninja_lock new file mode 100644 index 000000000..e69de29bb diff --git a/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD b/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD index b870d8262..ab1f234d6 100644 --- a/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD +++ b/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD @@ -1 +1 @@ -ref: refs/heads/main +c9763f62dd00c887a1a8fafe388db868a7e44069 diff --git a/ESP-IDF_Robot/build/CMakeFiles/git-data/grabRef.cmake b/ESP-IDF_Robot/build/CMakeFiles/git-data/grabRef.cmake index 513f05528..4a34cb9c2 100644 --- a/ESP-IDF_Robot/build/CMakeFiles/git-data/grabRef.cmake +++ b/ESP-IDF_Robot/build/CMakeFiles/git-data/grabRef.cmake @@ -18,7 +18,7 @@ set(HEAD_HASH) file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024) string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS) -set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git") +set(GIT_DIR "/home/abobkov/esp/esp-idf/.git") # handle git-worktree if(EXISTS "${GIT_DIR}/commondir") file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024) diff --git a/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref b/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref index 5b735a3fd..ab1f234d6 100644 --- a/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref +++ b/ESP-IDF_Robot/build/CMakeFiles/git-data/head-ref @@ -1 +1 @@ -0003398b9a113f20f9bf302ad6777535a7f6ba8f +c9763f62dd00c887a1a8fafe388db868a7e44069 diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index 4afd3edc3..cbd76da47 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -28,12 +28,17 @@ static const char *TAG = "ESP IDF Robot"; #define LEDC_OUTPUT_IO (5) // Define the output GPIO #define LEDC_CHANNEL LEDC_CHANNEL_0 #define LEDC_DUTY_RES LEDC_TIMER_10_BIT // 2**10 +/* +TIMER RESOLUTION MAX VALUE HALF-DUTY +10 1024 +13 8192 +*/ //#define LEDC_DUTY (2048) // Set duty to 50%. (2 ** 13) * 50% = 4096 1024 //#define LEDC_DUTY (1024) //#define LEDC_DUTY (1000) #define LEDC_DUTY (1010) //#define LEDC_DUTY (4096) -#define LEDC_FREQUENCY (10000) // For LED the freuqncy of 500Hz seemed to be sufficient. // Frequency in Hertz. For DC motor, set frequency at 5 kHz +#define LEDC_FREQUENCY (5000) // For LED the freuqncy of 500Hz seemed to be sufficient. // Frequency in Hertz. For DC motor, set frequency at 5 kHz /* Use project configuration menu (idf.py menuconfig) to choose the GPIO to blink, or you can edit the following line and set a number here.