From 6cc496a681e0ddd57250c11d86b7db293df77856 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sun, 22 Dec 2024 09:51:31 -0500 Subject: [PATCH] ESP IDF Robot --- ESP-IDF_Robot/main/blink_example_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index de1691d17..03f3668b6 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -131,6 +131,16 @@ static void configure_button (void) { #error "unsupported LED type" #endif +static void ledc_init (void) { + ledc_timer_config_t ledc_timer = { + .speed_mode = LEDC_MODE, + .duty_resolution = LEDC_DUTY_RES, + .timer_num = LEDC_TIMER, + .freq_hz = LEDC_FREQUENCY, + .clk_cfg = LED_SUTO_CLK + }; +} + void app_main(void) { // Initialize the config structure.