rc522 project

Dependencies:   RC522

Fork of RFID-RC522 by Andrea Corrado

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.