Inaddition,somepinshavespecializedfunctions:
Serial:0(RX)and1(TX).Usedtoreceive(RX)andtransmit(TX)TTLserialdata
usingtheATmega32U4hardwareserialcapability.NotethatontheMicro,the
SerialclassreferstoUSB(CDC)communication;forTTLserialonpins0and1,use
theSerial1class.
TWI:2(SDA)and3(SCL).SupportTWIcommunicationusingtheWirelibrary.
https://www.arduino.cc/en/Reference/Wire
ExternalInterrupts:0(RX),1(TX),2,3and7.Thesepinscanbeconfiguredto
triggeraninterruptonalowvalue,arisingorfallingedge,orachangeinvalue.
SeetheattachInterrupt()functionfordetails.
https://www.arduino.cc/en/Reference/AttachInterrupt
PWM:3,5,6,9,10,11and13.Provide8‐bitPWMoutput with
theanalogWrite()function.
https://www.arduino.cc/en/Reference/AttachInterrupt
SPI:ontheICSPheader.ThesepinssupportSPIcommunicationusingtheSPI
library.NotethattheSPIpinsarenotconnectedtoanyofthedigitalI/Opinsas
theyareontheUno,theyareonlyavailableontheICSPconnectorand onthe
nearbypinslabelledMISO,MOSIandSCK.
https://www.arduino.cc/en/Reference/SPI
RX_LED/SSThisisanadditionalpincomparedtotheLeonardo.Itisconnectedto
theRX_LEDthatindicatestheactivityoftransmissionduringUSBcommunication,
butiscanalsousedasslaveselectpin(SS)inSPIcommunication.
LED:13.Thereisabuilt‐inLEDconnectedtodigitalpin13.WhenthepinisHIGH
value,theLEDison,whenthepinisLOW,it'soff.
AnalogInputs:A0‐A5,A6‐A11(ondigitalpins4,6,8,9,10,and12).TheMicrohas
atotalof12analoginputs,pinsfromA0toA5arelabelleddirectlyonthepinsand
theotheronesthatyoucanaccessincodeusingtheconstantsfromA6troughA11
aresharedrespectivelyondigitalpins4,6,8,9,10,and12.Allofwhichcanalso
beusedasdigitalI/O.Eachanaloginputprovide10bitsofresolution(i.e.1024
differentvalues).Bydefaulttheanaloginputsmeasurefromgroundto5volts,
thoughisitpossibletochangetheupperendoftheirrangeusingtheAREFpinand
theanalogReference()function.
https://www.arduino.cc/en/Reference/AnalogReference
Thereareacoupleofotherpinsontheboard:
AREF.Referencevoltagefortheanaloginputs.UsedwithanalogReference().