ESP32-PICO-V3 IO20 error
Posted: Fri Sep 03, 2021 7:53 pm
I have an issue using ESP32-PICO-V3 IO20 (pin 27). When executing, terminal says:
E (317) gpio: gpio_set_direction(263): GPIO number error
E (327) gpio: gpio_set_level(215): GPIO output gpio_num error
Here's the simplest blink example I'm using.
All other IO pins work fine.
Someone knows what's happening?
E (317) gpio: gpio_set_direction(263): GPIO number error
E (327) gpio: gpio_set_level(215): GPIO output gpio_num error
Here's the simplest blink example I'm using.
Code: Select all
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
#define LED GPIO_NUM_20
#define RET 500
void app_main(void)
{
gpio_pad_select_gpio(LED);
gpio_set_direction(LED, GPIO_MODE_OUTPUT);
while(1)
{
gpio_set_level(LED, 1);
vTaskDelay(RET/portTICK_PERIOD_MS);
gpio_set_level(LED, 0);
vTaskDelay(RET/portTICK_PERIOD_MS);
}
}
Someone knows what's happening?