Arduino:1.8.13 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200" sketch_feb03a:13:16: error: 'D4' was not declared in this scope int pinDHT11 = D4; //连接dht11的引脚 ^ sketch_feb03a:15:21: error: 'D2' was not declared in this scope const int LED_Pin = D2; //假设连接led的引脚 ^ sketch_feb03a:20:1: error: expected unqualified-id before 'if' if (millis() - preHeartTick >= upDataTime) { //上传数据 ^ exit status 1 'D4' was not declared in this scope 在文件 -> 首选项开启 “编译过程中显示详细输出”选项 这份报告会包含更多信息。 |