esp32_gpio_write
Configure an ESP32 GPIO pin as output, input, or input_pullup and optionally set it high or low to control connected hardware, limited to firmware-allowed pins.
Instructions
Set a GPIO pin mode (output, input, input_pullup) and optionally drive it high or low. Pass value only, mode only, or both. Only pins in the firmware allow list can be changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | GPIO number, for example 2. | |
| mode | No | Pin mode to apply before the value. | |
| value | No | Digital level: 1 high, 0 low. |