ESP IDF Robot

This commit is contained in:
2024-12-21 23:56:42 -05:00
parent a61d7267b2
commit 3dfad28c93
7 changed files with 1082 additions and 2 deletions

View File

@@ -156,7 +156,8 @@ void app_main(void)
while (1) {
ESP_LOGI(TAG, "Turning the LED %s!", s_led_state == true ? "ON" : "OFF");
blink_led();
//blink_led();
gpio_set_level(BLINK_GPIO, s_led_state);
/* Toggle the LED state */
s_led_state = !s_led_state;
vTaskDelay(CONFIG_BLINK_PERIOD / portTICK_PERIOD_MS);