Per-pin and total package GPIO current limits for popular microcontrollers
| Platform β | Chip β | Vcc β | Max/Pin (mA) β | Rec/Pin (mA) β | Total Pkg (mA) β | Notes |
|---|
The max per-pin value is the absolute limit from the datasheet β exceeding it will damage the pin. The recommended value is the safe working current for long-term reliability (typically 60β70% of max).
Even if individual pins are within limits, the total current drawn from all GPIO pins combined must stay below the package limit. Overloading the total budget causes chip overheating and resets.
Some platforms have pins with different current ratings β e.g. ESP8266 GPIO16 differs from others, RPi GPIO2/3 are shared IΒ²C pins. Always check the specific datasheet for your pin.