ESP_IDF GPIO

less than 1 minute read

About ESP32

GPIO 6 ~ 11 -> SPI Flash
GPIO 34 ~ 39 -> Only input : NO software PULL_UP_DOWN

sdkconfig file

if you use normal esp32 that has 4MB flash, you have to change these sdkconfig code.

CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
CONFIG_SPI_FLASH_USE_LEGACY_IMPL=y

Drive Strength

전류의 크기 최적화

gpio_set_drive_capability
gpio_get_drive_capability 

0: ~5mA
1: ~10mA
2: ~20mA
3: ~40mA

Tags:

Categories:

Updated:

Leave a comment