remove some constructors
Optional soft reset was added before, this can confuse ppl by default set ss and not set rst pin. To clearify this change is made. Maybe brakes some implmentations.
This commit is contained in:
@@ -142,6 +142,8 @@ class MFRC522 {
|
||||
public:
|
||||
// Size of the MFRC522 FIFO
|
||||
static const byte FIFO_SIZE = 64; // The FIFO is 64 bytes.
|
||||
// Default value for unused pin
|
||||
static constexpr uint8_t UNUSED_PIN = UINT8_MAX;
|
||||
|
||||
// MFRC522 registers. Described in chapter 9 of the datasheet.
|
||||
// When using SPI all addresses are shifted one bit left in the "SPI address byte" (section 8.1.2.3)
|
||||
@@ -330,9 +332,7 @@ public:
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
// Functions for setting up the Arduino
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
MFRC522();
|
||||
DEPRECATED_MSG("use MFRC522(byte chipSelectPin, byte resetPowerDownPin)")
|
||||
MFRC522(byte resetPowerDownPin);
|
||||
MFRC522() : MFRC522(UNUSED_PIN, UNUSED_PIN) {};
|
||||
MFRC522(byte chipSelectPin, byte resetPowerDownPin);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -350,8 +350,6 @@ public:
|
||||
// Functions for manipulating the MFRC522
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
void PCD_Init();
|
||||
DEPRECATED_MSG("use PCD_Init(byte chipSelectPin, byte resetPowerDownPin)")
|
||||
void PCD_Init(byte resetPowerDownPin);
|
||||
void PCD_Init(byte chipSelectPin, byte resetPowerDownPin);
|
||||
void PCD_Reset();
|
||||
void PCD_AntennaOn();
|
||||
|
||||
Reference in New Issue
Block a user