A000057

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.Provide8bitPWMoutputwiththe 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's6pin
ICSPheader, theshieldwillnot work.
https://www.arduino.cc/en/Reference/SPI
LED:13. Thereisa built inLED connectedtodigitalpin13.WhenthepinisHIGHvalue,
theLEDison,when the pinisLOW,it'soff.
AnalogInputs:A0A5,A6‐A11 (ondigital pins4,6,8,9,10, and12).TheLeonardohas
12analoginputs,labeledA0throughA11,allofwhichcanalsobeusedasdigitali/o.Pins
A0A5appearin thesamelocationsasontheUno;inputsA6A11areon 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
Arduinosoftwareincludesaserialmonitorwhichallowssimpletextualdatatobe
senttoandfromtheArduinoboard.TheRXandTXLEDsontheboardwillflash
whendataisbeingtransmittedviatheUSBconnectiontothecomputer(butnot
forserialcommunicationonpins0and1).ASoftwareSeriallibraryallowsforserial
communicationonanyoftheLeonardo'sdigitalpins.TheATmega32U4also
supportsI2C(TWI)andSPIcommunication.TheArduinosoftwareincludesaWire
librarytosimplifyuseoftheI2Cbus;seethedocumentationfordetails.
http://www.arduino.cc/en/Reference/SoftwareSerial
https://www.arduino.cc/en/Reference/Wire
ForSPIcommunication,usetheSPIlibrary.TheLeonardoappearsasageneric
keyboardandmouse,andcanbeprogrammedtocontroltheseinputdevicesusing
theKeyboardandMouseclasses.
https://www.arduino.cc/en/Reference/SPI
Programming
TheLeonardocanbeprogrammedwiththeArduinosoftware(download). Select
"ArduinoLeonardofromtheTools>Boardmenu(accordingtothemicrocontroller
onyourboard).Fordetails,seethereferenceandtutorials.TheATmega32U4on
theArduinoLeonardocomespreburnedwithabootloaderthatallowsyouto
uploadnewcodetoitwithouttheuseofanexternalhardwareprogrammer.It
communicatesusingtheAVR109protocol.Youcanalsobypassthebootloaderand
programthemicrocontrollerthroughtheICSP(InCircuitSerialProgramming)
headerusingArduinoISPorsimilar;seetheseinstructionsfordetails.
https://www.arduino.cc/en/Main/Software
https://www.arduino.cc/en/Hacking/Programmer
Automatic(Software)ResetandBootloaderInitiation
Ratherthanrequiringaphysicalpressoftheresetbuttonbeforeanupload,the
Leonardoisdesignedina waythatallowsittoberesetbysoftwarerunningona
connectedcomputer.TheresetistriggeredwhentheLeonardo'svirtual(CDC)
serial/COMportisopenedat1200baudandthenclosed.Whenthishappens,the
processorwillreset,breakingtheUSBconnectiontothecomputer(meaningthat
thevirtualserial/COMportwilldisappear).Aftertheprocessorresets,the
bootloaderstarts,remainingactiveforabout8seconds.Thebootloadercanalso
beinitiatedbypressingtheresetbuttonontheLeonardo.Notethatwhenthe
boardfirstpowersup,itwilljumpstraighttotheusersketch,ifpresent,rather
thaninitiatingthebootloader.
BecauseofthewaytheLeonardohandlesresetit'sbesttolettheArduino
softwaretrytoinitiatetheresetbeforeuploading,especiallyifyouareinthe
habitofpressingtheresetbuttonbeforeuploadingonotherboards.Ifthe
softwarecan'tresettheboardyoucanalwaysstartthebootloaderbypressingthe
resetbuttonontheboard.
USBOvercurrentProtection
TheLeonardohasaresettablepolyfusethatprotectsyourcomputer'sUSBports
fromshortsandovercurrent.Althoughmostcomputersprovidetheirowninternal
protection,thefuseprovidesanextralayerofprotection.Ifmorethan500mAis
appliedtotheUSBport,thefusewillautomaticallybreaktheconnectionuntilthe
shortoroverloadisremoved.
PhysicalCharacteristics
ThemaximumlengthandwidthoftheLeonardoPCBare2.7and2.1inches
respectively,withtheUSBconnectorandpowerjackextendingbeyondtheformer
dimension.Fourscrewholesallowtheboardtobeattachedtoasurfaceorcase.
Notethatthedistancebetweendigitalpins7and8is160mil(0.16"),notaneven
multipleofthe100milspacingoftheotherpins.
https://store.arduino.cc/usa/arduinoleonardowithheaders12717

A000057

Mfr. #:
Manufacturer:
Arduino
Description:
Development Boards & Kits - AVR Arduino Leonardo with Headers
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet