Go Down

Topic: i cant configure pn 532 with esp 8266nodemcu (Read 43 times) previous topic - next topic

adityask007

i m getting the following errors when i upload it to espnodemcu 8266 but no problem with arduino uno

please help!!!



C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp:104:12: note: in expansion of macro 'WIRE'
     return WIRE.read();
            ^
C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp: In member function 'void Adafruit_PN532::begin()':
C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp:55:15: error: 'Wire1' was not declared in this scope
  #define WIRE Wire1
               ^
C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp:213:5: note: in expansion of macro 'WIRE'
     WIRE.begin();
     ^
C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp: In member function 'uint8_t Adafruit_PN532::mifareclassic_WriteNDEFURI(uint8_t, uint8_t, const char*)':
C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp:1045:53: warning: narrowing conversion of '(((int)len) + 5)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
   uint8_t sectorbuffer1[16] = {0x00, 0x00, 0x03, len+5, 0xD1, 0x01, len+1, 0x55, uriIdentifier, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
                                                     ^
C:\Users\sk\Documents\Arduino\libraries\Adafruit_PN532\Adafruit_PN532.cpp:1045:72: warning: narrowing conversion of '(((int)len) + 1)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

spycatcher2k

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design & Assembly work undertaken

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy