EasyManua.ls Logo

Elegoo Mega2560 - Page 150

Elegoo Mega2560
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
150
/
223
Code
After wiring, please open the program in the code folder- Lesson 21 RC522 RFID
Module and press UPLOAD to upload the program. See Lesson 2 for details about
program uploading if there are any errors.
Before you can run this, make sure that you have installed the < rfid > library or re-
install it, if necessary. Otherwise, your code won't work.
For details about loading the library file, see Lesson 1.
#
de
fi
ne R
ST_
PIN
5
// Confi
g
u
r
abl
e,
s
ee
ty
pi
c
al pin la
y
out abo
ve
#
de
fi
ne
SS_
PIN
53
// Confi
g
u
r
able
,
s
ee
ty
pical pin layou
t
abo
ve
Th
e
lo
c
a
t
ions of S
PI
pin
v
a
ry
w
ith di
ffere
n
t
c
hips
,
and
y
ou ha
ve
t
o
m
a
ke
a
m
ino
r
m
odifi
c
ation of the func
t
ion.
Example picture

Table of Contents