I am trying to build a project with the following includes and define:
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_PN532.h>
#include <stdint.h>
#include <stdbool.h>
#if defined(ARDUINO_ARCH_SAMD)
#define Serial SerialUSB
#endif
#define PN532_SCK (14) //D5
#define PN532_MOSI (13) //D7
#define PN532_SS (4) //D2
#define PN532_MISO (12) //d6
#define PN532_IRQ (2)
#define PN532_RESET (3) // Not connected by default on the NFC Shield
Adafruit_PN532 nfc(PN532_SCK, PN532_MISO, PN532_MOSI, PN532_SS);
Compiling gives me the following error:
Arduino:1.6.13 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled - 077e5692
who can help me?
thx
Send the complete sketch.
Compiling errors refers to undefined references in OmegaNFC.ino
I've tried and sketch can compile without problems on ESP8266, are you shure you have installed all dependencies of PN532 library?
Yes, this library depends from Adafruit BusIO , but if you install libraries using library manager in Arduino IDE instead manually download the zip file, dependencies will be added as additional request.
cotestatnt:
Sì, questa libreria dipende da Adafruit BusIO , ma se si installano librerie utilizzando library manager in Arduino IDE invece di scaricare manualmente il file zip, le dipendenze verranno aggiunte come richiesta aggiuntiva.
Perfect, noob mistake -.- '
system
Closed
May 31, 2022, 10:14am
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.