RP2040 vs ESP8266EX

The same measures, side by side. A dot marks the stronger figure where two numbers can be ranked.

Raspberry Pi LtdRP2040Raspberry Pi's first microcontroller. Two Cortex-M0+ cores, generous memory and programmable IO in a 7 mm package.
Espressif SystemsESP8266EXA 32-bit processor and a complete 2.4 GHz Wi-Fi radio in a 5 mm package.Not recommended for new designs. Espressif suggests the ESP8684 instead.
Core and memory
ArchitectureArm Cortex-M0+Tensilica L106, 32-bit
Cores2 (stronger)1
Max clock133 MHz160 MHz (stronger)
RAM264 kB (stronger)Under 50 kB
On-chip flashNoneNone
External flashUp to 16 MB, QSPIUp to 16 MB, SPI
Connectivity
WirelessNoneWi-Fi 802.11 b/g/n
USB1.1 host or deviceNone
Inputs and outputs
GPIO pins30 (stronger)17
ADC4 inputs, 12-bit1 input, 10-bit
UART22 (one transmit-only)
SPI22 (one shares the flash pins)
I2C21, in software
PWM16 channels (stronger)4 outputs
Programmable IO8 state machinesNone
Power
Supply1.8–3.3 V2.5–3.6 V
Deepest sleep0.18 mA typical20 µA (stronger)
Temperature−40 to +85 °C−40 to +125 °C
Package
PackageQFN-56QFN-32
Body7 × 7 mm5 × 5 mm
Space on the board7 × 7 mm5 × 5 mm
Pin pitch0.4 mm0.5 mm
Released20212014

Swap sides