Skip to content

Arduino Leonardo Pinout

Find the Arduino Leonardo pinout, digital and analog pins, memory limits, and Circuitera compile/upload support. Check board-specific library compatibility.

Processor
ATMEGA32U4
Clock
16 MHz
Physical flash
32768 bytes
Application flash
28672 bytes
SRAM
2560 bytes
EEPROM
1024 bytes
Digital pins
20
Analog inputs
12
PWM
D3, D5, D6, D9, D10, D11, D13
Hardware UARTs
1
UART pins
D0, D1
I2C
D2, D3, SDA, SCL
SPI
MISO, SCK, MOSI, SS
External interrupts
D0, D1, D2, D3, D7
Logic voltage
5 V
Bootloader
Caterina · 1200 baud USB reset
Protocol / baud
AVR109 · 57600
Compile capability
Verified · automated compile
Upload capability
Untested · physical hardware
Serial capability
Untested · physical hardware
Simulation
Not supported for this profile
Build-matched compile check
2026-10-25
Arduino Leonardo logical UART, I2C, SPI, interrupt, PWM and analog signal groups from the validated pin profile
Logical signal reference; aliases can share a physical terminal. Use the official board pinout for physical placement.

Choose the exact board

Serial is native USB; Serial1 is TTL UART on D0/RX and D1/TX. I2C uses D2/SDA and D3/SCL. SPI uses the ICSP header (Micro also exposes named SPI pins). Upload resets/re-enumerates USB; hardware validation is pending.

Compile, upload, and simulation

Real AVR-GCC compilation uses leonardo and the selected clock. Upload is experimental pending physical hardware validation. Simulation is not yet supported for this board.

Memory and signals

Application flash excludes the bootloader. SRAM use reported after Verify excludes runtime stack and heap. Check the pin reference below before connecting a circuit.

Upload and validation limits

Serial is native USB; Serial1 is TTL UART on D0/RX and D1/TX. I2C uses D2/SDA and D3/SCL. SPI uses the ICSP header (Micro also exposes named SPI pins). Upload resets/re-enumerates USB; hardware validation is pending.

No physical upload certification recorded in these build reports. Compile capability, simulated protocol tests and physical upload are separate claims.

Toolchain: avr-gcc-wasm@0.2.0. Last matching compile evidence: 2026-10-25. Build: e0f6d304cce4ae0a0989a9b1300cbc1a21a595e5e3e7f57ed0ab3468ecf7940b.

How these results are measured →

Arduino Leonardo pinout table

Every pin and alias is present in the initial HTML. Filter by signal capability, or select a pin for its existing reference details. Disconnect power before changing wiring.

38 pin entries

Select a pin to read its capabilities.

PinCapabilitiesDetails
DIGITAL · UART · INTERRUPTSerial1 RX · TTL UART, separate from native USB Serial
DIGITAL · UART · INTERRUPTSerial1 TX · TTL UART, separate from native USB Serial
DIGITAL · I2C · INTERRUPTSDA · I2C data
DIGITAL · PWM · I2C · INTERRUPTSCL · I2C clock · PWM
DIGITALAlso A6 analog input. Same physical terminal.
DIGITAL · PWMDigital input/output
DIGITAL · PWMAlso A7 analog input. Same physical terminal.
DIGITAL · INTERRUPTDigital input/output
DIGITALAlso A8 analog input. Same physical terminal.
DIGITAL · PWMAlso A9 analog input. Same physical terminal.
DIGITAL · PWMAlso A10 analog input. Same physical terminal.
DIGITAL · PWMDigital input/output
DIGITALAlso A11 analog input. Same physical terminal.
DIGITAL · PWMLED_BUILTIN · PWM
ANALOG · DIGITAL10-bit analog input; Arduino digital alias 18.
ANALOG · DIGITAL10-bit analog input; Arduino digital alias 19.
ANALOG · DIGITAL10-bit analog input; Arduino digital alias 20.
ANALOG · DIGITAL10-bit analog input; Arduino digital alias 21.
ANALOG · DIGITAL10-bit analog input; Arduino digital alias 22.
ANALOG · DIGITAL10-bit analog input; Arduino digital alias 23.
ANALOG · DIGITAL10-bit analog input sharing D4. Not an additional terminal.
ANALOG · DIGITAL10-bit analog input sharing D6. Not an additional terminal.
ANALOG · DIGITAL10-bit analog input sharing D8. Not an additional terminal.
ANALOG · DIGITAL10-bit analog input sharing D9. Not an additional terminal.
ANALOG · DIGITAL10-bit analog input sharing D10. Not an additional terminal.
ANALOG · DIGITAL10-bit analog input sharing D12. Not an additional terminal.
SPI · DIGITALSPI is on the six-pin ICSP header, not Uno D11–D13.
SPI · DIGITALSPI is on the six-pin ICSP header, not Uno D11–D13.
SPI · DIGITALSPI is on the six-pin ICSP header, not Uno D11–D13.
SPICore SS alias is PB0/RX LED, not a general exposed chip-select terminal. Use a free digital pin for peripheral CS.
I2C · DIGITALAlias of D2.
I2C · DIGITALAlias of D3.
POWER5 V logic and supply rail.
POWER3.3 V output; check the board current rating.
GROUNDCommon ground.
POWERRegulator input; consult board power limits.
RESETActive-low reset.
ANALOGExternal ADC reference; configure analogReference appropriately.
Official Arduino board pinout reference ↗

Library compile results

Actual source/hash-matched results for this exact profile. A passed compile does not prove a real peripheral, motor or wiring works.

LibraryPinned versionResultFlash / static RAMTest date
HID1.0PASS4614 / 187 bytes2026-10-25
Keyboard1.0.7PASS5664 / 227 bytes2026-10-25
Mouse1.0.1PASS4790 / 202 bytes2026-10-25
Servo1.3.0PASS5898 / 191 bytes2026-10-25
Wire1.0PASS6846 / 372 bytes2026-10-25
SPI1.0PASS5084 / 156 bytes2026-10-25
EEPROM2.0PASS4862 / 152 bytes2026-10-25
SoftwareSerial1.0PASS6170 / 267 bytes2026-10-25
LiquidCrystal1.0.7PASS5798 / 200 bytes2026-10-25
DHT1.4.7PASS7970 / 183 bytes2026-10-25
Adafruit Unified Sensor1.1.15PASS11592 / 268 bytes2026-10-25
Adafruit GFX1.12.6PASS13588 / 497 bytes2026-10-25
Adafruit SSD13062.5.17PASS17242 / 538 bytes2026-10-25
Adafruit BusIO1.17.4PASS9496 / 402 bytes2026-10-25
Adafruit NeoPixel1.15.5PASS6646 / 182 bytes2026-10-25
NewPing1.9.7PASS5584 / 173 bytes2026-10-25
IRremote4.7.1PASS14970 / 1039 bytes2026-10-25
Keypad3.1.1PASS6406 / 293 bytes2026-10-25
AccelStepper1.64PASS9610 / 260 bytes2026-10-25
LiquidCrystal_I2C1.1.2PASS7378 / 416 bytes2026-10-25

Projects and next steps

The public tutorials are validated on Uno. Their concepts can help with this board, but wiring, pin maps, libraries and the exact profile must be reviewed and verified separately; they are not claimed as tested projects on this board.

Keep exploring.