ExternalInterrupts:3(interrupt0),2(interrupt1),0(interrupt2),1(interrupt3) and7
(interrupt4).These pinscanbeconfiguredtotriggeraninterruptonalow value,arising
orfallingedge,orachangeinvalue.SeetheattachInterrupt()functionfordetails.
https://www.arduino.cc/en/Reference/AttachInterrupt
PWM:3,5,6,9,10,11, and13.Provide8‐bitPWMoutputwiththe analogWrite()
function.
https://www.arduino.cc/en/Reference/AnalogWrite
SPI:ontheICSPheader.These pinssupportSPIcommunicationusingtheSPI library.Note
thattheSPI pins are notconnectedtoanyofthedigitalI/O pinsastheyareontheUno,
TheyareonlyavailableontheICSP connector.Thismeansthatifyouhaveashieldthat
usesSPI,but does NOThavea 6‐ pinICSP connectorthatconnectsto the Leonardo's6‐pin
ICSPheader, theshieldwillnot work.
https://www.arduino.cc/en/Reference/SPI
LED:13. Thereisa built‐ inLED connectedtodigitalpin13.WhenthepinisHIGHvalue,
theLEDison,when the pinisLOW,it'soff.
AnalogInputs:A0‐A5,A6‐A11 (ondigital pins4,6,8,9,10, and12).TheLeonardohas
12analoginputs,labeledA0throughA11,allofwhichcanalsobeusedasdigitali/o.Pins
A0‐A5appearin thesamelocationsasontheUno;inputsA6‐A11areon digital i/opins4,
6,8,9,10,and12respectively.Eachanaloginput provide10bitsofresolution(i.e.1024
differentvalues).Bydefaultthe analoginputsmeasurefromgroundto5volts,though is
itpossible tochangetheupper endof theirrangeusingtheAREFpin and
theanalogReference()function.
https://www.arduino.cc/en/Reference/AnalogReference
Thereareacoupleofotherpinsontheboard:
AREF.Referencevoltagefortheanaloginputs.UsedwithanalogReference().
https://www.arduino.cc/en/Reference/AnalogReference
Reset.BringthislineLOW toresetthemicrocontroller.Typicallyusedtoaddareset
buttonto shieldswhichblocktheoneontheboard.
SeealsothemappingbetweenArduinopinsandATmega32u4ports.
https://www.arduino.cc/en/Hacking/PinMapping32u4
Communication
TheLeonardohasanumberoffacilitiesforcommunicatingwithacomputer,
anotherArduino,orothermicrocontrollers.TheATmega32U4providesUARTTTL
(5V)serialcommunication,whichisavailable ondigitalpins0(RX)and1(TX).The
32U4alsoallowsforserial(CDC)communicationoverUSBandappearsasavirtual
comporttosoftwareonthecomputer.ThechipalsoactsasafullspeedUSB2.0
device,usingstandardUSBCOMdrivers.OnWindows,a.inffileisrequired.The