mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-11 23:10:16 +00:00
ESP IDF Robot
This commit is contained in:
@@ -123,7 +123,6 @@ static void configure_button (void) {
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
|
||||
// Initialize the config structure.
|
||||
gpio_config_t io_conf = {};
|
||||
|
||||
@@ -159,8 +158,8 @@ void app_main(void)
|
||||
while (1) {
|
||||
ESP_LOGI(TAG, "Turning the LED %s!", s_led_state == true ? "ON" : "OFF");
|
||||
//blink_led();
|
||||
gpio_set_level(BLINK_GPIO, s_led_state);
|
||||
/* Toggle the LED state */
|
||||
gpio_set_level(BLINK_GPIO, s_led_state);
|
||||
s_led_state = !s_led_state;
|
||||
vTaskDelay(CONFIG_BLINK_PERIOD / portTICK_PERIOD_MS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user