#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#define LED_GPIO_PIN GPIO_NUM_23 // Assuming LED is connected to GPIO 2
void app_main()
{
gpio_set_direction(LED_GPIO_PIN, GPIO_MODE_OUTPUT); // Set GPIO pin as output
while (1)
{
gpio_set_level(LED_GPIO_PIN, 1); // Turn on the LED
vTaskDelay(1000 / portTICK_PERIOD_MS); // Wait for 1 second
gpio_set_level(LED_GPIO_PIN, 0); // Turn off the LED
vTaskDelay(1000 / portTICK_PERIOD_MS); // Wait for another 1 second
}
}