Hi - I have bought NFC Shield V2.0 and followed the instructions as in Wiki – but not able to get it working. I have an urgent project that relies on reading/writing NFC. Would really appreciate your helps on making this works.
Compile Error: ‘Serial1’ was not declared in this scope
I am not sure I have structured the library correctly. The instruction on Wiki is not that clear, and could use your guidance on more detailed instruction to ensure I get it right.
under C:\Program Files (x86)\Arduino\libraries
Seeed_Arduino_NFC-master
- src
– PN532 (renamed from PN532-arduino)
— PN532
— PN532_HSU
— PN532_I2C
— PN532_SPI
— PN532_SWHSU
Below is the full error
ReadTag:12:24: error: ‘Serial1’ was not declared in this scope
PN532_HSU pn532hsu(Serial1);
^~~~~~~
C:\Users\DEFAUL~1.LAP\AppData\Local\Temp\arduino_modified_sketch_621187\ReadTag.ino:12:24: note: suggested alternative: ‘Serial’
PN532_HSU pn532hsu(Serial1);
^~~~~~~
Serial
Multiple libraries were found for “NfcAdapter.h”
Used: C:\Users\defaultuser0.LAPTOP-A61P8187\Documents\Arduino\libraries\Seeed_Arduino_NFC-master
Not used: C:\Program Files (x86)\Arduino\libraries\Seeed_Arduino_NFC-master
exit status 1
‘Serial1’ was not declared in this scope