ESP32-S3: pick pins like a pro (and avoid the ones that sabotage you)
I have 16 pins and 17 problems.

Summary
- The W11 has 16 pins on its edge. 13 are GPIO.
- The N1 asks for 17: display 6, audio 3, encoder 2, battery 1 and buttons 5.
- GPIO0, 3, 45 and 46 are strapping pins: they are read at power-on.
- We use IO3 for the encoder. It only matters if you burn the eFuse that selects the JTAG source. From the factory it's ignored.
- GPIO26 to 32 belong to the flash and PSRAM bus. With octal PSRAM, 33 to 37 too. Don't touch them.
- Two tricks free pins: an RC network on the display reset, and the backlight tied straight to 3V3.
- The PDM microphone uses IO41 and IO42. It costs no edge pins.
«I have 16 pins and 17 problems.»
The math · The budget
- Requested: 6 + 3 + 2 + 1 + 5 = 17 pins.
- Display with RC reset and backlight on 3V3: 6 → 4.
- Resistor ladder: 5 buttons → 1 pin.
- Used: 4 + 3 + 2 + 1 + 1 = 11 of 13.
- Free: IO5 and IO9.

Engineer's rule
Use a strapping pin only if you know what it reads at boot.