Thepowerpinsareasfollows:
VIN.The input voltagetothe Arduinoboardwhenit'susing anexternalpowersource(as
opposedto5volts from theUSBconnectionorotherregulatedpowersource).Youcan
supplyvoltagethroughthispin,or,ifsupplyingvoltageviathepowerjack,accessit
throughthis pin.
5V.Theregulatedpowersupplyusedto powerthemicrocontrollerandothercomponents
ontheboard.Thiscancomeeither fromVINviaanon‐boardregulator,orbesuppliedby
USBoranotherregulated5V supply.
3V3.A3.3voltsupplygeneratedby the on‐boardregulator.Maximumcurrentdrawis50
mA.
GND.Groundpins.
IOREF.Thevoltageatwhichthei/opinsoftheboardareoperating(i.e.VCCforthe
board).Thisis5VontheLeonardo.
Memory
TheATmega32u4has32KB(with4KBusedforthebootloader).Italsohas2.5KB
ofSRAMand1KBofEEPROM(whichcanbereadandwrittenwiththeEEPROM
library).http://www.arduino.cc/en/Reference/EEPROM
InputandOutput
Eachofthe20digitali/opinsontheLeonardocanbeusedasaninputoroutput,
using
pinMode()https://www.arduino.cc/en/Reference/PinMode,
digitalWrite()https://www.arduino.cc/en/Reference/DigitalWrite,
anddigitalRead()https://www.arduino.cc/en/Reference/DigitalRead
functions.Theyoperateat5volts.Eachpincanprovideorreceiveamaximumof
40mAandhasaninternalpull‐upresistor(disconnectedbydefault)of20‐50
kOhms.Inaddition,somepinshavespecializedfunctions:
Serial:0(RX)and1(TX). Usedtoreceive(RX) and transmit (TX) TTL serialdata using
theATmega32U4hardwareserialcapability.NotethatontheLeonardo,theSerialclass
referstoUSB(CDC) communication; forTTLserialonpins0and1,use theSerial1class.
TWI:2(SDA)and3 (SCL). SupportTWIcommunicationusingtheWire library.
https://www.arduino.cc/en/Reference/Wire