mirror of
https://github.com/semaf/MFRC522_I2C_Library.git
synced 2025-07-30 13:27:14 +02:00
testst
This commit is contained in:
@ -20,11 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
MFRC522::MFRC522( byte chipAddress,
|
MFRC522::MFRC522( byte chipAddress,
|
||||||
byte resetPowerDownPin, ///< Arduino pin connected to MFRC522's reset and power down input (Pin 6, NRSTPD, active low)
|
byte resetPowerDownPin, ///< Arduino pin connected to MFRC522's reset and power down input (Pin 6, NRSTPD, active low)
|
||||||
TwoWire TwoWireInstance
|
TwoWire * TwoWireInstance
|
||||||
) {
|
) : _TwoWireInstance(TwoWireInstance) {
|
||||||
_chipAddress = chipAddress;
|
_chipAddress = chipAddress;
|
||||||
_resetPowerDownPin = resetPowerDownPin;
|
_resetPowerDownPin = resetPowerDownPin;
|
||||||
_TwoWireInstance = TwoWireInstance;
|
|
||||||
} // End constructor
|
} // End constructor
|
||||||
|
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ public:
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Functions for setting up the Arduino
|
// Functions for setting up the Arduino
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////
|
||||||
MFRC522(byte chipAddress, byte resetPowerDownPin, TwoWire TwoWireInstance);
|
MFRC522(byte chipAddress, byte resetPowerDownPin, TwoWire & TwoWireInstance = Wire);
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Basic interface functions for communicating with the MFRC522
|
// Basic interface functions for communicating with the MFRC522
|
||||||
@ -404,7 +404,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
byte _chipAddress;
|
byte _chipAddress;
|
||||||
byte _resetPowerDownPin; // Arduino pin connected to MFRC522's reset and power down input (Pin 6, NRSTPD, active low)
|
byte _resetPowerDownPin; // Arduino pin connected to MFRC522's reset and power down input (Pin 6, NRSTPD, active low)
|
||||||
TwoWire _TwoWireInstance; // TwoWire Instance
|
TwoWire & _TwoWireInstance; // TwoWire Instance
|
||||||
byte MIFARE_TwoStepHelper(byte command, byte blockAddr, long data);
|
byte MIFARE_TwoStepHelper(byte command, byte blockAddr, long data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user