This sample can't be compiled as tutorial guide for I2C Mode, it should add #include <NfcAdapter.h> for I2C Mode ,and set #elif 1 -> #elif 0