Robot Maker Toolkit › Pinouts › Arduino Leonardo

Arduino Leonardo pinout

Every Arduino Leonardo pin with its capabilities (digital, PWM, ADC, I2C, SPI, UART) and the wiring gotchas that bite. An UNO-shaped board whose chip has native USB — it can pretend to be a keyboard, mouse or game controller. Great for HID projects.

ATmega32u4 @ 16 MHzLogic: 5 VPro in app

Arduino Leonardo pinout diagram

Arduino Leonardo pinout diagramUSBArduino LeonardoNC (not detailed in the catalog yet)NCIOREF: Power out 5V. Watch out: Logic-level reference for shields — output onlyIOREFPower out 5V⚠RESET: Reset. Watch out: Active LOWRESETReset⚠3.3V: Power out 3.3V3.3VPower out 3.3V5V: Power out 5V5VPower out 5VGND: GroundGNDGroundGND: GroundGNDGroundVIN: Power in 7–12VVINPower in 7–12VA0: Analog inA0Analog inA1: Analog inA1Analog inA2: Analog inA2Analog inA3: Analog inA3Analog inA4: Analog inA4Analog inA5: Analog inA5Analog inSCL = D3 (SCL): PWM · I2C SCL · Interrupt. Watch out: I2C here, not A5SCLPWM · I2C SCL · Interrupt⚠SDA = D2 (SDA): I2C SDA · Interrupt. Watch out: I2C here, not A4SDAI2C SDA · Interrupt⚠AREF: Analog reference. Watch out: Call analogReference(EXTERNAL) before feeding a voltage inAREFAnalog reference⚠GND: GroundGNDGroundD13: PWM · Built-in LED. Watch out: No SPI SCK here — SPI is on the ICSP header onlyD13PWM · Built-in LED⚠D12: Analog in (A11)D12Analog in (A11)~D11 = D11: PWM~D11PWM~D10 = D10: PWM · Analog in (A10) · SPI SS (soft)~D10PWM · Analog in (A10) · SPI SS (soft)~D9 = D9: PWM · Analog in (A9)~D9PWM · Analog in (A9)D8: Analog in (A8)D8Analog in (A8)D7: InterruptD7Interrupt~D6 = D6: PWM · Analog in (A7)~D6PWM · Analog in (A7)~D5 = D5: PWM~D5PWMD4: Analog in (A6)D4Analog in (A6)~D3 = D3 (SCL): PWM · I2C SCL · Interrupt. Watch out: I2C here, not A5~D3PWM · I2C SCL · Interrupt⚠D2 = D2 (SDA): I2C SDA · Interrupt. Watch out: I2C here, not A4D2I2C SDA · Interrupt⚠TX 1 = D1 (TX1): UART1 TX · Interrupt. Watch out: Serial1 header pins, not the USB serialTX 1UART1 TX · Interrupt⚠RX 0 = D0 (RX1): UART1 RX · Interrupt. Watch out: Serial1 header pins, not the USB serialRX 0UART1 RX · Interrupt⚠PowerGNDI2CSPIUARTAnalogPWMDigitalOther / not in catalog yet⚠has a watch-out in the table below · hover a pin for details

ICSP (2x3) on the bottom edge carries the 32U4's SPI. Download SVG

PinCapabilitiesWatch out
D0 (RX1)DigitalUART1 RXInterrupt
Serial1 header pins, not the USB serial
D1 (TX1)DigitalUART1 TXInterrupt
Serial1 header pins, not the USB serial
D2 (SDA)DigitalI2C SDAInterrupt
I2C here, not A4
D3 (SCL)DigitalPWMI2C SCLInterrupt
I2C here, not A5
D4DigitalAnalog in (A6)
D5DigitalPWM
D6DigitalPWMAnalog in (A7)
D7DigitalInterrupt
D8DigitalAnalog in (A8)
D9DigitalPWMAnalog in (A9)
D10DigitalPWMAnalog in (A10)SPI SS (soft)
D11DigitalPWM
D12DigitalAnalog in (A11)
D13DigitalPWMBuilt-in LED
No SPI SCK here — SPI is on the ICSP header only
A0Analog inDigital
A1Analog inDigital
A2Analog inDigital
A3Analog inDigital
A4Analog inDigital
A5Analog inDigital
AREFAnalog reference
Call analogReference(EXTERNAL) before feeding a voltage in
IOREFPower out 5V
Logic-level reference for shields — output only
RESETReset
Active LOW
5VPower out 5V
3.3VPower out 3.3V
VINPower in 7–12V
GNDGround

Arduino Leonardo gotchas & notes

Get this pinout — plus 55+ sensor wiring diagrams, shield maps and maker calculators — offline on your phone.

Get it onGoogle Play

Other board pinouts

Arduino UNO R3ESP32 DevKit (WROOM-32)Raspberry Pi PicoArduino UNO R4 WiFiArduino UNO QArduino NanoArduino Nano ESP32Arduino Mega 2560ESP8266 NodeMCU