compile ไม่ผ่านค่ะ เคยเจอแบบนี้สองสามครั้งเลยค่ะ แต่ครั้งนี้แก้ไม่ได้จริงๆ คือไปอ่านกระทุ้อื่นมาด้วย ฟังชั่นเราก็ไม่ได้ซ้ำนะคะ esp8266 ก็ install แล้ว เลือกบอร์ดถูกแล้ว ลองเปลี่ยนบอร์ดก็แล้ว ลองเปลี่ยนไปเทสกับโค้โตัวอย่างก็แล้ว ยังคงเป็นเหมือนเดิมเลยค่ะ ช่วยทีนะคะ ขอบคุณค่ะ
แคปภาพ code ที่ error มาดูด้วยครับ
ขอโค้ตที่ใช้หน่อยครับ
library นี้มีรึยังครับ
Adafruit_GFX.h
มีแล้วค่ะ…
Build options changed, rebuilding all
Sketch uses 296168 bytes (28%) of program storage space. Maximum is 1044464 bytes.
Global variables use 31000 bytes (37%) of dynamic memory, leaving 50920 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM3
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:52:ff:d2
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 300320 bytes to 214969...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (14 %)
Writing at 0x00008000... (21 %)
Writing at 0x0000c000... (28 %)
Writing at 0x00010000... (35 %)
Writing at 0x00014000... (42 %)
Writing at 0x00018000... (50 %)
Writing at 0x0001c000... (57 %)
Writing at 0x00020000... (64 %)
Writing at 0x00024000... (71 %)
Writing at 0x00028000... (78 %)
Writing at 0x0002c000... (85 %)
Writing at 0x00030000... (92 %)
Writing at 0x00034000... (100 %)
Wrote 300320 bytes (214969 compressed) at 0x00000000 in 19.3 seconds (effective 124.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Arduino: 1.8.9 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from C:\Users\Mingkhwan\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
C:\Users\Mingkhwan\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
#include <Adafruit_Sensor.h>
^
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
อันนี้คือเออเร่อของคอมอีดเครื่องค่ะ
ลองเพิ่มการกำหนดค่า
#include <Adafruit_Sensor.h>
เข้าได้ดูครับ เช็คด้วยว่ามี library นี้ รึยัง DHT_U.h
ยังค่ะ ไลบราลีที่ใช้มันไม่มีให้ #include <Adafruit_Sensor.h> อ่ะค่ะ แต่พอลองใส่เข้าไปดูมันบอกว่า no such file อ่ะค่ะ
ณ ตอนนี้ติดอยู่ตรงไหนครับ