RFID Chip MFRC522 driver
Fork of MFRC522 by
Revision 2:7d80320beb72, committed 2017-12-22
- Comitter:
- sheralikhan
- Date:
- Fri Dec 22 09:16:37 2017 +0000
- Parent:
- 1:63d729186747
- Commit message:
- Uploaded for testing
Changed in this revision
| MFRC522.cpp | Show annotated file Show diff for this revision Revisions of this file |
| MFRC522.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MFRC522.cpp Mon Jan 06 15:00:15 2014 +0000
+++ b/MFRC522.cpp Fri Dec 22 09:16:37 2017 +0000
@@ -55,7 +55,7 @@
{
/* Configure SPI bus */
m_SPI.format(8, 0);
- m_SPI.frequency(8000000);
+ m_SPI.frequency(5000000);
/* Release SPI-CS pin */
m_CS = 1;
--- a/MFRC522.h Mon Jan 06 15:00:15 2014 +0000
+++ b/MFRC522.h Fri Dec 22 09:16:37 2017 +0000
@@ -306,7 +306,7 @@
// A struct used for passing the UID of a PICC.
typedef struct {
uint8_t size; // Number of bytes in the UID. 4, 7 or 10.
- uint8_t uidByte[10];
+ uint8_t uidByte[5];
uint8_t sak; // The SAK (Select acknowledge) byte returned from the PICC after successful selection.
} Uid;
