Pn532 SPI library

gyb001
Posts: 2
Joined: Thu Jun 20, 2019 12:05 pm

Pn532 SPI library

Postby gyb001 » Thu Jun 20, 2019 12:18 pm

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);)

Who is online

Users browsing this forum: No registered users and 127 guests