fatal error: Adafruit_Sensor.h: No such file or directory #include <Adafruit_Sensor.h>
很多朋友來問這問題,Arduino錯誤,No such file or directory #include <Adafruit_Sensor.h>
解決方法我就PO在這囉
"DHT.h"找到多個程式庫 In file included from C:\Users\CJSCOPE\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:15:0: 已使用: C:\Users\CJSCOPE\Documents\Arduino\libraries\DHT_sensor_library C:\Users\CJSCOPE\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:36:10: fatal error: Adafruit_Sensor.h: No such file or directory #include <Adafruit_Sensor.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1 開發板 Arduino Nano 編譯錯誤。
關鍵是這個 Adafruit_Sensor.h
像這樣,應該就可以解決囉!
留言列表