Cannot upload code to arduino MKRzero
Opened this issue · 1 comments
This is my code:
#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
#include <NfcAdapter.h>PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);void setup(void) {
}void loop(void) {
if (nfc.tagPresent()) {
NfcTag tag = nfc.read();
tag.print();
}
}
but when I try to upload it to my MKR zero i get
C:\Users\anton\Documents\Arduino\libraries\NDEF-1.1.0\MifareUltralight.cpp: In member function 'boolean MifareUltralight::write(NdefMessage&, byte*, unsigned int)':
C:\Users\anton\Documents\Arduino\libraries\NDEF-1.1.0\MifareUltralight.cpp:225:19: error: 'class PN532' has no member named 'mifareultralight_WritePage'
if (!nfc->mifareultralight_WritePage(page, src)) ^
C:\Users\anton\Documents\Arduino\libraries\NDEF-1.1.0\MifareUltralight.cpp: In member function 'boolean MifareUltralight::clean()':
C:\Users\anton\Documents\Arduino\libraries\NDEF-1.1.0\MifareUltralight.cpp:254:19: error: 'class PN532' has no member named 'mifareultralight_WritePage'
if (!nfc->mifareultralight_WritePage(i, data)) { ^
exit status 1
Error compiling for board Arduino MKRZERO.
I would like to note that I am using a breakout PN532 from Adafruit, v1.3
Hi,
Were you able to make your MKRZero detect your MFRC522? If so, do you mind sharing the schematics?