Arduino:1.8.13 (Windows 10), 开发板:"Generic ESP8285 Module, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), ck, 26 MHz, 1M (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" sketch_feb01a:12:14: error: 'D4' was not declared in this scope int PINDHT = D4; ^ sketch_feb01a:21:19: error: 'D4' was not declared in this scope int SimpleDHT11 = D4; ^ sketch_feb01a:22:1: error: 'SimpleDHT11' does not name a type SimpleDHT11 dht11(PINDHT); ^ C:\Users\Administrator\Desktop\sketch_feb01a\sketch_feb01a.ino: In function 'void loop()': sketch_feb01a:37:14: error: 'dht11' was not declared in this scope if ((err = dht11.read(&temperature, &humidity, NULL)) != SimpleDHTErrSuccess) { ^ exit status 1 'D4' was not declared in this scope 在文件 -> 首选项开启 “编译过程中显示详细输出”选项 这份报告会包含更多信息。 |