Professional Documents
Culture Documents
Functions
begin()
end()
setBitOrder()
setClockDivider()
setDataMode()
transfer()
Due Extended SPI
usage
Examples
BarometricPressure
Sensor: Read air
pressure and
temperature from a
sensor using SPI
SPIDigitalPot:
Control a digital
potentiometer using
SPI
See also
shiftOut()
shiftIn()
Connections
The following table display on which pins the
lines are broken out on the different Arduino
boards:
SS
Arduino
MO
MI
SC
(sla
Board
SI
SO
K
ve)
11
12
13
Uno or
or
or
or
Duemila
10
ICS
ICS
ICS
nove
P-4
P-1
P-3
Mega12
51
50
52
80 or
or
or
or
53
Mega25
ICS
ICS
ICS
60
P-4
P-1
P-3
Leonard
ICS
ICS
ICS
o
P-4
P-1
P-3
Due
ICS
P-4
ICS
P-1
ICS
P-3
SPI
SS
(mas
ter)
-
4,
10,
52