mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-13 12:00:11 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -739,6 +739,7 @@ static void motors_task (void *pvParameter) {}
|
||||
static void led_task (void *pyParameter) {
|
||||
while(1)
|
||||
{
|
||||
ESP_LOGI(TAG, "Turning the LED %s!", s_led_state == true ? "ON" : "OFF");
|
||||
gpio_set_level(BLINK_GPIO, s_led_state);
|
||||
vTaskDelay(CONFIG_BLINK_PERIOD / portTICK_PERIOD_MS);
|
||||
}
|
||||
@@ -781,14 +782,12 @@ void app_main(void)
|
||||
/*
|
||||
Configure on-board LED
|
||||
*/
|
||||
/*
|
||||
io_conf.intr_type = GPIO_INTR_DISABLE;
|
||||
io_conf.mode = GPIO_MODE_OUTPUT;
|
||||
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
|
||||
io_conf.pull_down_en = 0;
|
||||
io_conf.pull_up_en = 0;
|
||||
gpio_config(&io_conf);
|
||||
*/
|
||||
|
||||
// Configure on-board push button
|
||||
io_conf.intr_type = GPIO_INTR_POSEDGE;
|
||||
|
Reference in New Issue
Block a user