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?