为 "wire"\\\\\\\\ 找到了多个库

Multiple libraries were found for "wire"\\\\\\\\

Arduino: 1.8.11 (Windows Store 1.8.28.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp: In function 'void wiresend(uint8_t)':

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:53:15: error: 'Wire1' was not declared in this scope

  #define WIRE Wire1

               ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:78:5: note: in expansion of macro 'WIRE'

     WIRE.write((uint8_t)x);

     ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp: In function 'uint8_t wirerecv()':

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:53:15: error: 'Wire1' was not declared in this scope

  #define WIRE Wire1

               ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:92:12: note: in expansion of macro 'WIRE'

     return WIRE.read();

            ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp: In member function 'void Adafruit_NFCShield_I2C::begin()':

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:53:15: error: 'Wire1' was not declared in this scope

  #define WIRE Wire1

               ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:120:3: note: in expansion of macro 'WIRE'

   WIRE.begin();

   ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp: In member function 'void Adafruit_NFCShield_I2C::wirereaddata(uint8_t*, uint8_t)':

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:53:15: error: 'Wire1' was not declared in this scope

  #define WIRE Wire1

               ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:981:3: note: in expansion of macro 'WIRE'

   WIRE.requestFrom((uint8_t)PN532_I2C_ADDRESS, (uint8_t)(n+2));

   ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp: In member function 'void Adafruit_NFCShield_I2C::wiresendcommand(uint8_t*, uint8_t)':

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:53:15: error: 'Wire1' was not declared in this scope

  #define WIRE Wire1

               ^

C:\Users\user\Documents\Arduino\libraries\Adafruit_NFCShield_I2C-master\Adafruit_NFCShield_I2C.cpp:1021:3: note: in expansion of macro 'WIRE'

   WIRE.beginTransmission(PN532_I2C_ADDRESS);

   ^

Multiple libraries were found for "Wire.h"
 Used: C:\Users\user\Documents\Arduino\libraries\Wire
 Not used: C:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266.6.3\libraries\Wire
Multiple libraries were found for "SPI.h"
 Used: C:\Users\user\Documents\Arduino\libraries\SPI
 Not used: C:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266.6.3\libraries\SPI
Multiple libraries were found for "ESP8266WiFi.h"
 Used: C:\Users\user\Documents\Arduino\libraries\ESP8266WiFi
 Not used: C:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266.6.3\libraries\ESP8266WiFi
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

这份报告将包含更多信息 "Show verbose output during compilation" 在文件 -> 首选项中启用选项。

您在库文件夹中安装了 SPI 和 Wire 库。此库依赖于平台,并且是与平台的板包捆绑在一起的正确版本。

ESP8266WiFi 库与 ESP8266 Arduino 板包捆绑在一起。它不应安装在库中。

删除C:\Users\user\Documents\Arduino\libraries\

中的Wire、SPI库和ESP8266WiFi

Arduino builder 应该更喜欢与 boards 包捆绑的库,但是 Arduino IDE 1.8.11 中的 builder 版本有一个错误,选择了错误的库。