This module provides access to the [GPIO](https://en.wikipedia.org/wiki/General-purpose_input/output)(General Purpose Input/Output) subsystem.
This module provides access to the [GPIO](https://en.wikipedia.org/wiki/General-purpose_input/output)(General Purpose Input/Output) subsystem.
# 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 the [ESP32 Datasheet](http://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf)).
- GPIO6-11 are usually used for SPI flash.
- GPIO20, GPIO24, and GPIO28-31 are not available as pins.
- GPIO34-39 can only be set as input mode and do not have software pullup or pulldown functions.
## gpio.config()
## gpio.config()
Configure GPIO mode for one or more pins.
Configure GPIO mode for one or more pins.
...
@@ -23,7 +30,7 @@ gpio.config({
...
@@ -23,7 +30,7 @@ gpio.config({
#### Parameters
#### Parameters
List of configuration tables:
List of configuration tables:
-`gpio` one or more (given as list) pins, 0 ~ 33 I/O index
-`gpio` one or more (given as list) pins, see [GPIO Overview](#gpio-overview)