mirror of
https://github.com/semaf/MFRC522_I2C_Library.git
synced 2025-06-24 22:41:33 +02:00
testst
This commit is contained in:
@ -20,11 +20,10 @@
|
||||
*/
|
||||
MFRC522::MFRC522( byte chipAddress,
|
||||
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;
|
||||
_resetPowerDownPin = resetPowerDownPin;
|
||||
_TwoWireInstance = TwoWireInstance;
|
||||
} // End constructor
|
||||
|
||||
|
||||
|
@ -321,7 +321,7 @@ public:
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
// 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
|
||||
@ -404,7 +404,7 @@ public:
|
||||
private:
|
||||
byte _chipAddress;
|
||||
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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user