|
发表于 2020-1-9 01:20:47
|
显示全部楼层
你的代码在烧录时总出错,是什么问题呀:
Arduino:1.8.5 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (1M SPIFFS)"
C:\arduino-hassmart\arduino-builder -dump-prefs -logger=machine -hardware C:\arduino-hassmart\hardware -hardware C:\arduino-hassmart\portable\packages -tools C:\arduino-hassmart\tools-builder -tools C:\arduino-hassmart\hardware\tools\avr -tools C:\arduino-hassmart\portable\packages -built-in-libraries C:\arduino-hassmart\libraries -libraries C:\arduino-hassmart\portable\sketchbook\libraries -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M1M -ide-version=10805 -build-path C:\Users\wen\AppData\Local\Temp\arduino_build_959117 -warnings=none -build-cache C:\Users\wen\AppData\Local\Temp\arduino_cache_51961 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=C:\arduino-hassmart\portable\packages\esp8266\tools\esptool\0.4.9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\arduino-hassmart\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\arduino-hassmart\portable\packages\esp8266\tools\mkspiffs\0.1.2 -verbose D:\下载\浏览器下载\cold_water_recycle-master\cold_water_recycle-master\cold_water_recycle\cold_water_recycle.ino
C:\arduino-hassmart\arduino-builder -compile -logger=machine -hardware C:\arduino-hassmart\hardware -hardware C:\arduino-hassmart\portable\packages -tools C:\arduino-hassmart\tools-builder -tools C:\arduino-hassmart\hardware\tools\avr -tools C:\arduino-hassmart\portable\packages -built-in-libraries C:\arduino-hassmart\libraries -libraries C:\arduino-hassmart\portable\sketchbook\libraries -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M1M -ide-version=10805 -build-path C:\Users\wen\AppData\Local\Temp\arduino_build_959117 -warnings=none -build-cache C:\Users\wen\AppData\Local\Temp\arduino_cache_51961 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=C:\arduino-hassmart\portable\packages\esp8266\tools\esptool\0.4.9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\arduino-hassmart\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\arduino-hassmart\portable\packages\esp8266\tools\mkspiffs\0.1.2 -verbose D:\下载\浏览器下载\cold_water_recycle-master\cold_water_recycle-master\cold_water_recycle\cold_water_recycle.ino
Using board 'nodemcuv2' from platform in folder: C:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0
Using core 'esp8266' from platform in folder: C:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0
Detecting libraries used...
"C:\arduino-hassmart\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\wen\AppData\Local\Temp\arduino_build_959117/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10805 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0\variants\nodemcu" "C:\Users\wen\AppData\Local\Temp\arduino_build_959117\sketch\cold_water_recycle.ino.cpp" -o "nul"
"C:\arduino-hassmart\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include" "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include" "-IC:\Users\wen\AppData\Local\Temp\arduino_build_959117/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10805 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU" -DESP8266 "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" "-IC:\arduino-hassmart\portable\packages\esp8266\hardware\esp8266\2.3.0\variants\nodemcu" "C:\Users\wen\AppData\Local\Temp\arduino_build_959117\sketch\cold_water_recycle.ino.cpp" -o "C:\Users\wen\AppData\Local\Temp\arduino_build_959117\preproc\ctags_target_for_gcc_minus_e.cpp"
D:\涓嬭浇\娴忚鍣ㄤ笅杞絓cold_water_recycle-master\cold_water_recycle-master\cold_water_recycle\cold_water_recycle.ino:16:21: fatal error: OneWire.h: No such file or directory
compilation terminated.
exit status 1
为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。
|
|