ATmega 32U4-Arduino Pin Mapping

Arduino Leonardo pin mapping table

Pin NumberPin NameMapped Pin Name
1PE6 (INT.6/AIN0)Digital pin 7
2UVcc+5V
3D-RD-
4D+RD+
5UGndUGND
6UCapUCAP
7VUSBVBus
8(SS/PCINT0) PB0RXLED
9(PCINT1/SCLK) PB1SCK
10(PDI/PCINT2/MOSI) PB2MOSI
11(PDO/PCINT3/MISO) PB3MISO
12(PCINT7/OC0A/OC1C/#RTS) PB7Digital pin 11 (PWM)
13RESETRESET
14Vcc+5V
15GNDGND
16XTAL2XTAL2
17XTAL1XTAL1
18(OC0B/SCL/INT0) PD0Digital pin 3 (SCL)(PWM)
19(SDA/INT1) PD1Digital pin 2 (SDA)
20(RX D1/AIN1/INT2) PD2Digital pin 0 (RX)
21(TXD1/INT3) PD3Digital pin 1 (TX)
22(XCK1/#CTS) PD5TXLED
23GND1GND
24AVCCAVCC
25(ICP1/ADC8) PD4Digital pin 4
26(T1/#OC4D/ADC9) PD6Digital pin 12
27(T0/OC4D/ADC10) PD7Digital Pin 6 (PWM)
28(ADC11/PCINT4) PB4Digital pin 8
29(PCINT5/OC1A/#OC4B/ADC12) PB5Digital Pin 9 (PWM)
30(PCINT6/OC1B/OC4B/ADC13) PB6Digital Pin 10 (PWM)
31(OC3A/#0C4A) PC6Digital Pin 5 (PWM)
32(ICP3/CLK0/)0C4A) PC7Digital Pin 13 (PWM)
33(#HWB) PE2HWB
34Vcc1+5V
35GND2GND
36(ADC7/TDI) PF7Analog In 0
37(ADC6/TDO) PF6Analog In 1
38(ADC5/TMS) PF5Analog In 2
39(ADC4/TCK) PF4Analog In 3
40(ADC1) PF1Analog In 4
41(ADC0) PF0Analog In 5
42AREFAEF
43GND3GND
44AVCC1AVCC