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

\Arduino\libraries\TFT_eWidget\src/TFT_eWidget.h:19:26: fatal error: LittleFS.h: No such file or directory compilation terminated. #14

Open
qbox4u opened this issue May 3, 2023 · 2 comments

Comments

@qbox4u
Copy link

qbox4u commented May 3, 2023

Probably i make a mistake, but others have the knowhow ^_^

Used HW: esp32 (Wemos D1 R32)
Used platform: Arduino IDE
test: Analogue_meters.ino

ERROR:
In file included from C:\Users\qx\OneDrive\Documents\Arduino\libraries\TFT_eSPI\examples\GUI Widgets\Meters\Analogue_meters\Analogue_meters.ino:18:0:
C:\Users\qx\OneDrive\Documents\Arduino\libraries\TFT_eWidget\src/TFT_eWidget.h:19:26: fatal error: LittleFS.h: No such file or directory
compilation terminated.

Solution:
Change TFT_eWidget.h

// LittleFS is required for touch calibration in TFT_eSPI sketches
#if defined (ESP8266) || defined (ESP32)
#include <pgmspace.h>
#include <FS.h>
///////////new: ********************
#if defined (ESP8266)
#include <LittleFS.h>
#elif defined (ESP32)
#include <LITTLEFS.h>
#endif
///////////End of new**************
#endif

@sd-softdev
Copy link

You can add the LittleFS lib from lorol

[env:NodeMCU]
...
lib_deps = 
	...
	lorol/LittleFS_esp32@^1.0.6

@matt-kiwi
Copy link

matt-kiwi commented Sep 24, 2023

I had a similar issue using TFT_eWidget with ESP32 on PlatformIO

My ESP32 framework was out of date, I did an update as follows;
pio platform update espressif32

Which solved my issue.
This thread helped me: platformio/platform-espressif32#877 (comment)
Thanks Valeros :-)

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

3 participants