Bodmer / TFT_eFEX

A support library for TFT_eSPI that adds commonly used extra functions
Other
83 stars 27 forks source link

Compile error when using ESP32-S2 #43

Open Dresch123 opened 2 years ago

Dresch123 commented 2 years ago

image Hi, In attempting to use the Sprite technique I ran into a compile error (see above) which I think is related to using the ESP32S2 and the native ESP32 JPEG decoder. This file: rom/tjpgd.h can't be found. This seems to be happening in the TFT_eFEX library. Any suggestions? Thanks, Bill

The file does compile without issue for the normal ESP32 Dev Module selection so the problem most likely lies with the ESP32S2 selection and the TFT_eFEX library.

One other thought. Since a sprite is limited to about 80K, how difficult would it be to create a JPEG to TWO sprite routine? For instance, create UpperSprite and Lower Sprite and each would be the size of half a display (320 x 120 or 240 x 120, for examples). The JPEG would get decoded evenly between the two Sprites. When the routine returns, you could do two pushImages to completely fill the screen. Sort of like you do with that Bounce INO with the floating numbered circles. I know this is kind of a specialized routine but since a great number of screens are 320 x 240 or 240 x 240, this would handle a lot interesting use cases.

Thanks again Bodmer. The libraries you have created are amazing!

Bodmer commented 2 years ago

The library is not currently compatible with the S2. The original ESP32 had a jpeg code in the ROM.