ESP32 GPIO Pins:
Maximum current per GPIO pin: 40mA.
Total maximum allowed current: 120mA (sum of all GPIO pins).
Note: While a single GPIO pin can output 40mA, prolonged high-current use may lead to overheating or damage to the chip. It is recommended to keep the current below 20mA for stability.
ESP8266 GPIO Pins:
Maximum current per GPIO pin: 12mA.
Total maximum allowed current: 70mA (sum of all GPIO pins).
Similar to the ESP32, it’s advisable to limit the current to a lower value in practice to extend the chip’s lifespan and prevent overheating.
So, the ESP32 GPIOs can provide higher current, but caution should be exercised to avoid damaging the chip.