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

Animated_dial Compliation error - ESP32 / ILI9341 #38

Closed
Amitabh-wq opened this issue May 2, 2022 · 17 comments
Closed

Animated_dial Compliation error - ESP32 / ILI9341 #38

Amitabh-wq opened this issue May 2, 2022 · 17 comments
Labels

Comments

@Amitabh-wq
Copy link

Hi, I am trying to test the example called 'Animated_dial' but geting the IDE error:

I:\Users\UserJ\Documents\Arduino\libraries\TJpg_Decoder\src/TJpg_Decoder.h:23:26: fatal error: LittleFS.h: No such file or directory

I have installed all the libraries required. Any toughts? Thanks

@Bodmer
Copy link
Owner

Bodmer commented May 2, 2022

Not all processor board packages provide LittleFS. Those that do include:
ESP32
ESP8266
RP2040 (Earle Philhowers package only)

Consult the board package documentation.

@Bodmer Bodmer closed this as completed May 2, 2022
@Amitabh-wq
Copy link
Author

I am using the ESP32:

[code]
TFT_eSPI ver = 2.4.51
Processor = ESP32
Frequency = 240MHz
Transactions = Yes
Interface = SPI
Display driver = 9341
Display width = 240
Display height = 320

MOSI = GPIO 23
MISO = GPIO 19
SCK = GPIO 18
TFT_CS = GPIO 15
TFT_DC = GPIO 2
TFT_RST = GPIO 4
TOUCH_CS = GPIO 5

Font GLCD loaded
Font 2 loaded
Font 4 loaded
Font 6 loaded
Font 7 loaded
Font 8 loaded
Smooth font enabled

Display SPI frequency = 40.00
Touch SPI frequency = 2.50
[/code]

@Bodmer Bodmer transferred this issue from Bodmer/TFT_eSPI May 3, 2022
@Bodmer
Copy link
Owner

Bodmer commented May 3, 2022

Load the latest master jpeg library and try that.

@Amitabh-wq
Copy link
Author

Load the latest master jpeg library and try that.

Hi Bodmer, I am using the TJpg_Decoder latest version 1.0.3 but it has the above compilation error.

@Bodmer
Copy link
Owner

Bodmer commented May 3, 2022

Which version of the ESP32 board package are you using?

@Bodmer
Copy link
Owner

Bodmer commented May 3, 2022

I checked with board package 2.0.2 (latest) and it runs fine and LittleFS.h is found.

I suspect you are using an old 1.0.x board package as those version did not provide LittleFS support.

@Bodmer Bodmer added the answered label May 3, 2022
@Amitabh-wq
Copy link
Author

I did the following, I edited the header 'TJpg_Decoder.h' (from the TJpg_Decoder library) I renamed the call of library from <LittleFS.h> to <LITTLEFS.h>, as the LITTLEFS library is in capital letters. I use ESP32 boards V 1.0.6 which is the most stable for my projects. The compilation went without errors, but the graph has problems, the pointer is erasing the numbers, see the photo below:
IMG_2061

@Amitabh-wq
Copy link
Author

In addition, before I also tested ESP Boards V 2.0.2 and this same error occurred.

@Bodmer
Copy link
Owner

Bodmer commented May 4, 2022

The display SDO line must be connected. Have you specified the read frequency in the setup file?
#define SPI_READ_FREQUENCY 10000000

@Amitabh-wq
Copy link
Author

Hi Bodmer, I followed your instructions and it worked. Only the numbers in the center are overlapping, I don't know if this is normal. See below

IMG_2063.mp4

.

@Bodmer
Copy link
Owner

Bodmer commented May 4, 2022

The numbers problem has been fixed in the latest master library on Github.

@Amitabh-wq
Copy link
Author

Amitabh-wq commented May 5, 2022

I am using the latest.
image

@Bodmer
Copy link
Owner

Bodmer commented May 5, 2022

Latest is 2.4.61 and is only available from Github here a the moment:
https://github.com/Bodmer/TFT_eSPI

@Amitabh-wq
Copy link
Author

Latest is 2.4.61 and is only available from Github here a the moment: https://github.com/Bodmer/TFT_eSPI

I have installed it manually and replaced with my configurated files. Now it is working fine. Thank you.

@Bodmer
Copy link
Owner

Bodmer commented May 5, 2022

Great, I will be releasing the new version soon.

@IAmOrion
Copy link

IAmOrion commented Jul 23, 2022

I'm curious, where are you getting 2.0.2 package from? I came here with the same "LIttleFS" not found problem. I saw @Amitabh-wq comment to use uppercase LITTLEFS and that has worked for me. As far as I know I have the correct board url > https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json and there's no 2.x.x version?

Screenshot 2022-07-23 at 19 48 18

@Bodmer
Copy link
Owner

Bodmer commented Aug 2, 2022

Currently I am using the development branch link:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

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

No branches or pull requests

3 participants