Remove redundant HSPI pins from PN532 constructor
This commit is contained in:
parent
9b2818f11b
commit
f29a8ed4fd
|
@ -50,7 +50,7 @@ public:
|
||||||
static volatile int irq;
|
static volatile int irq;
|
||||||
static volatile bool toggleMode;
|
static volatile bool toggleMode;
|
||||||
static uint8_t mode;
|
static uint8_t mode;
|
||||||
explicit PN532Reader(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t ss);
|
explicit PN532Reader(uint8_t ss);
|
||||||
bool canHaveUnstableIdentifier() override;
|
bool canHaveUnstableIdentifier() override;
|
||||||
bool isNewCardPresent() override;
|
bool isNewCardPresent() override;
|
||||||
String getCardUid() override;
|
String getCardUid() override;
|
||||||
|
|
|
@ -22,7 +22,7 @@ HTTPClient* http = new HTTPClient();
|
||||||
|
|
||||||
Reader* readers[] = {
|
Reader* readers[] = {
|
||||||
//new MFRC522CardReader(PIN_HSPI_SS, PIN_HSPI_RST),
|
//new MFRC522CardReader(PIN_HSPI_SS, PIN_HSPI_RST),
|
||||||
new PN532Reader(PIN_HSPI_SCLK, PIN_HSPI_MISO, PIN_HSPI_MOSI, PIN_HSPI_CS0),
|
new PN532Reader(PIN_HSPI_CS0),
|
||||||
//new RDM6300Reader(PIN_HWSERIAL_RX)
|
//new RDM6300Reader(PIN_HWSERIAL_RX)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ volatile bool PN532Reader::toggleMode = false;
|
||||||
uint8_t PN532Reader::mode = 0;
|
uint8_t PN532Reader::mode = 0;
|
||||||
|
|
||||||
|
|
||||||
PN532Reader::PN532Reader(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t ss) {
|
PN532Reader::PN532Reader(uint8_t ss) {
|
||||||
pn532 = new Adafruit_PN532(ss, new SPIClass(HSPI));
|
pn532 = new Adafruit_PN532(ss, new SPIClass(HSPI));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue