From net:
The following pins supports internal-pull ups:
- GPIO2 (often labeled as "D2" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO4 (often labeled as "D4" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO5 (often labeled as "D5" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO12 (often labeled as "D12" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO13 (often labeled as "D13" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO14 (often labeled as "D14" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO15 (often labeled as "D15" on development boards) - Supports both internal pull-up and pull-down resistors.
- GPIO25 - Supports internal pull-up resistor.
- GPIO26 - Supports internal pull-up resistor.
- GPIO27 - Supports internal pull-up resistor.