GPIO¶
Overview¶
The ESP32 chip features 40 physical GPIO pads. Some GPIO pads cannot be used or do not have the corresponding pin on the chip package(refer to technical reference manual ). Each pad can be used as a general purpose I/O or can be connected to an internal peripheral signal. Note that GPIO6-11 are usually used for SPI flash. GPIO34-39 can only be set as input mode.
Application Example¶
GPIO output and input interrupt example: peripherals/gpio.
API Reference¶
Header Files¶
Macros¶
Warning
doxygendefine: Cannot find define “GPIO_SEL_0” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_1” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_2” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_3” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_4” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_5” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_6” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_7” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_8” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_9” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_10” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_11” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_12” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_13” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_14” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_15” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_16” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_17” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_18” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_19” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_21” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_22” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_23” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_25” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_26” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_27” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_32” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_33” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_34” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_35” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_36” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_37” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_38” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SEL_39” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_0” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_1” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_2” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_3” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_4” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_5” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_6” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_7” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_8” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_9” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_10” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_11” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_12” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_13” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_14” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_15” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_16” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_17” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_18” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_19” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_20” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_21” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_22” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_23” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_25” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_26” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_27” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_32” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_33” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_34” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_35” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_36” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_37” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_38” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_REG_39” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_APP_CPU_INTR_ENA” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_APP_CPU_NMI_INTR_ENA” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PRO_CPU_INTR_ENA” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PRO_CPU_NMI_INTR_ENA” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_SDIO_EXT_INTR_ENA” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_MODE_DEF_INPUT” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_MODE_DEF_OUTPUT” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_MODE_DEF_OD” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_PIN_COUNT” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_IS_VALID_GPIO” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygendefine: Cannot find define “GPIO_IS_VALID_OUTPUT_GPIO” in doxygen xml output for project “esp32-idf” from directory: xml/
Type Definitions¶
Warning
doxygentypedef: Cannot find typedef “gpio_isr_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygentypedef: Cannot find typedef “gpio_isr_handle_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Enumerations¶
Warning
doxygenenum: Cannot find enum “gpio_num_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenenum: Cannot find enum “gpio_int_type_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenenum: Cannot find enum “gpio_mode_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenenum: Cannot find enum “gpio_pullup_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenenum: Cannot find enum “gpio_pulldown_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenenum: Cannot find enum “gpio_pull_mode_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Structures¶
Warning
doxygenstruct: Cannot find class “gpio_config_t” in doxygen xml output for project “esp32-idf” from directory: xml/
Functions¶
Warning
doxygenfunction: Cannot find function “gpio_config” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_set_intr_type” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_intr_enable” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_intr_disable” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_set_level” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_get_level” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_set_direction” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_set_pull_mode” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_wakeup_enable” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_wakeup_disable” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_isr_register” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_pullup_en” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_pullup_dis” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_pulldown_en” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_pulldown_dis” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_install_isr_service” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_uninstall_isr_service” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_isr_handler_add” in doxygen xml output for project “esp32-idf” from directory: xml/
Warning
doxygenfunction: Cannot find function “gpio_isr_handler_remove” in doxygen xml output for project “esp32-idf” from directory: xml/