Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HighASG936 opened this issue May 9, 2024 · 0 comments
Open

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

HighASG936 opened this issue May 9, 2024 · 0 comments

Comments

@HighASG936
Copy link

I'm using lastest verison of TFT_eSPI lib with an ESP32-WROOM-32 Devkit.
It just declares the header as #include <TFT_eSPI.h> 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



#include <SPI.h>
^~~~~~~
compilation terminated.
*** [.pio\build\wemos_d1_mini32\libfaf\TFT_eSPI\TFT_eSPI.cpp.o] Error 1
~/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-uart.c: In function 'uartSetPins':
~/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
return;
^~~~~~
~/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-uart.c:149:6: note: declared here
bool uartSetPins(uint8_t uart_num, int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin)
^~~~~~~~~~~
============================================================================================== [FAILED] Took 4.41 seconds ====================================================================

Notes:

  • SPI lib already installed and works correctly with other dev boards

  • I use 2.5.43 version.

  • I use #include <User_Setups/Setup42_ILI9341_ESP32.h> & #define ILI9341_DRIVER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant