Andrea Corrado
/
RFID-RC522
Added extra RFID readers
Fork of RFID-RC522 by
Revision 4:320ce84c8f43, committed 2018-06-22
- Comitter:
- andcor02
- Date:
- Fri Jun 22 09:59:36 2018 +0000
- Parent:
- 3:654723104cc9
- Commit message:
- Changed LED
Changed in this revision
MFRC522.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MFRC522.cpp Fri Jun 22 09:41:42 2018 +0000 +++ b/MFRC522.cpp Fri Jun 22 09:59:36 2018 +0000 @@ -55,8 +55,8 @@ { /* Configure SPI bus */ m_SPI.format(8, 0); -// m_SPI.frequency(8000000); - m_SPI.frequency(1000000); + m_SPI.frequency(8000000); + /* Release SPI-CS pin */ m_CS = 1;
--- a/main.cpp Fri Jun 22 09:41:42 2018 +0000 +++ b/main.cpp Fri Jun 22 09:59:36 2018 +0000 @@ -18,7 +18,7 @@ #include "mbed.h" #include "MFRC522.h" -DigitalOut LedGreen(LED1); +DigitalOut LedGreen(LED2); //Serial connection to PC for output Serial pc(USBTX, USBRX); @@ -51,8 +51,10 @@ pc.printf(" %X02", RfChip.uid.uidByte[i]); } pc.printf("\n\r"); + wait_ms(200); } } + /* if ( RfChip2.PICC_IsNewCardPresent()) { if (RfChip2.PICC_ReadCardSerial()) {