Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.79k stars 1.09k forks source link

fatal error: SPI.h: No such file or directory #3317

Open HighASG936 opened 6 months ago

HighASG936 commented 6 months ago

I'm using lastest verison of TFT_eSPI lib with an ESP32-WROOM-32 Devkit. It just declares the header as #include and nothing more. When attempting to compile the project, the following error is displayed:

In file included from .pio/libdeps/wemos_d1_mini32/TFT_eSPI/TFT_eSPI.cpp:16: .pio/libdeps/wemos_d1_mini32/TFT_eSPI/TFT_eSPI.h:33:12: fatal error: SPI.h: No such file or directory


Notes:

brian4685380 commented 3 months ago

I encountered the same problem and I think this works well for me https://techoverflow.net/2020/12/14/how-to-fix-platformio-esp8266-esp32-fatal-error-spi-h-no-such-file-or-directory/