Page 1 of 1

Pn532 SPI library

Posted: Thu Jun 20, 2019 12:18 pm
by gyb001
Hello.
I got a board with ESP-32 (wroom 32) and NXP PN532 which connected by SPI.
How can i use this nfc reader in esp-idf? I found onliy i2c https://github.com/lucafaccin/esp-pn532 ... er/PN532.c library.
Its working under arduino.
#include <PN532_SPI.h>
#include "PN532.h"
...
#define PN532_SCK (18)
#define PN532_MOSI (23)
#define PN532_SS (25)
#define PN532_MISO (19)
...
nfc.begin();
..
uint32_t versiondata = nfc.getFirmwareVersion();
nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength);)