hello
i want to connect a NFC PN532 grove to my M5paper on the UART PORT C
i installed the library : https://wiki.seeedstudio.com/Grove_NFC/
but i have this error : Didn’t find PN53x board
this is my code :
#include <NfcAdapter.h>
#include <PN532/PN532/PN532.h>
#include <M5EPD.h>
#include <PN532/PN532_SWHSU/PN532_SWHSU.h>
#include "SoftwareSerial.h"
//HardwareSerial Serial1(1);
#define RX_PIN 18
#define TX_PIN 19
#define BAUD_RATE 57600
SoftwareSerial SWSerial(RX_PIN, TX_PIN);
PN532_SWHSU pn532swhsu(SWSerial);
NfcAdapter nfc(pn532swhsu);
void setup(void) {
M5.begin();
Serial1.println("NDEF begin");
//delay(5000);
Serial1.begin(9600, SERIAL_8N1,RX_PIN, TX_PIN);
// Serial1.begin(BAUD_RATE, RX_PIN, TX_PIN, SWSERIAL_8N1, false, 95, 11);
Serial1.println("NDEF Reader");
nfc.begin();
}
void loop(void) {
SERIAL.println("\nScan a NFC tag\n");
if (nfc.tagPresent()) {
NfcTag tag = nfc.read();
tag.print();
}
//delay(5000);
M5.update();
delay(100);
}