Skip to content

Commit

Permalink
Set chip select pin HIGH; only select on need
Browse files Browse the repository at this point in the history
Set chip select pin to HIGH at first to avoid issues when using multiple
devices on the same SPI bus.
  • Loading branch information
ljos committed Jan 30, 2014
1 parent 9d7705a commit a08867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MFRC522.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
MFRC522::MFRC522(int sad, int reset) {
_sad = sad;
pinMode(_sad, OUTPUT); // Set digital as OUTPUT to connect it to the RFID /ENABLE pin
digitalWrite(_sad, LOW);
digitalWrite(_sad, HIGH);


_reset = reset;
Expand Down

0 comments on commit a08867a

Please sign in to comment.