Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upload code to arduino MKRzero #45

Open
PresidentialAnt opened this issue Jun 17, 2018 · 1 comment
Open

Cannot upload code to arduino MKRzero #45

PresidentialAnt opened this issue Jun 17, 2018 · 1 comment

Comments

@PresidentialAnt
Copy link

PresidentialAnt commented Jun 17, 2018

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

@msanchezt
Copy link

Hi,

Were you able to make your MKRZero detect your MFRC522? If so, do you mind sharing the schematics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants