Grove NFC v1.1 does not work with UART

Hi there~



The uart works, please refer to the library and the code @ bottom as well. thanks



https://github.com/Seeed-Studio/Seeed_Arduino_NFC



http://wiki.seeedstudio.com/Grove_NFC/

[code]#include <NfcAdapter.h>
#include <PN532/PN532/PN532.h>
#if 0
#include <SPI.h>
#include <PN532/PN532_SPI/PN532_SPI.h>
PN532_SPI pn532spi(SPI, 9);
NfcAdapter nfc = NfcAdapter(pn532spi);
#elif 1

#include <PN532/PN532_HSU/PN532_HSU.h>
PN532_HSU pn532hsu(Serial1);
NfcAdapter nfc(pn532hsu);

#else

#include <Wire.h>
#include <PN532/PN532_I2C/PN532_I2C.h>

PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
#endif

void setup(void) {
SERIAL.begin(9600);
SERIAL.println(“NDEF Reader”);
nfc.begin();
}

void loop(void) {
SERIAL.println("\nScan a NFC tag\n");
if (nfc.tagPresent())
{
NfcTag tag = nfc.read();
tag.print();
}
delay(5000);
}[/code]