Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RFID-RC522 by
Diff: MFRC522.cpp
- Revision:
- 3:654723104cc9
- Parent:
- 1:63d729186747
- Child:
- 4:320ce84c8f43
--- a/MFRC522.cpp Fri Jun 06 03:04:48 2014 +0000
+++ b/MFRC522.cpp Fri Jun 22 09:41:42 2018 +0000
@@ -55,7 +55,8 @@
{
/* Configure SPI bus */
m_SPI.format(8, 0);
- m_SPI.frequency(8000000);
+// m_SPI.frequency(8000000);
+ m_SPI.frequency(1000000);
/* Release SPI-CS pin */
m_CS = 1;
@@ -240,6 +241,16 @@
/////////////////////////////////////////////////////////////////////////////////////
// Functions for manipulating the MFRC522
/////////////////////////////////////////////////////////////////////////////////////
+void MFRC522::PCD_Reset_On()
+{
+ m_RESET = 0;
+}
+
+void MFRC522::PCD_Reset_Off()
+{
+ m_RESET = 1;
+}
+
/**
* Initializes the MFRC522 chip.
