ESP IDF Robot

This commit is contained in:
2024-12-22 12:29:38 -05:00
parent 0416ffed59
commit 82424ef0ea
5 changed files with 5 additions and 5 deletions

View File

View File

@@ -1 +1 @@
ref: refs/heads/main c9763f62dd00c887a1a8fafe388db868a7e44069

View File

@@ -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) 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) 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 # handle git-worktree
if(EXISTS "${GIT_DIR}/commondir") if(EXISTS "${GIT_DIR}/commondir")
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024) file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)

View File

@@ -1 +1 @@
ea3d8e20242b6bb239c82666da44a9afdaa1a3bf c9763f62dd00c887a1a8fafe388db868a7e44069

View File

@@ -168,14 +168,14 @@ static void ledc_init (void) {
.hpoint = 0, .hpoint = 0,
}; };
ESP_ERROR_CHECK(ledc_channel_config(&ledc_channel)); ESP_ERROR_CHECK(ledc_channel_config(&ledc_channel));
ESP_ERROR_CHECK(ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, LEDC_DUTY));
ESP_ERROR_CHECK(ledc_update_duty(LEDC_MODE, LEDC_CHANNEL));
} }
void app_main(void) void app_main(void)
{ {
// Initialize LED // Initialize LED
ledc_init(); ledc_init();
ESP_ERROR_CHECK(ledc_set_duty(LEDC_MODE, LEDC_CHANNEL, LEDC_DUTY));
ESP_ERROR_CHECK(ledc_update_duty(LEDC_MODE, LEDC_CHANNEL));
// Initialize the config structure. // Initialize the config structure.
gpio_config_t io_conf = {}; gpio_config_t io_conf = {};