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
– PN532 (renamed from PN532-arduino)
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”
Not used: C:\Program Files (x86)\Arduino\libraries\Seeed_Arduino_NFC-master
exit status 1
‘Serial1’ was not declared in this scope