Bodmer / TFT_eFEX

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

Image problems using TFT_eFEX library #37

Closed stephensaid closed 1 year ago

stephensaid commented 3 years ago

Thanks, Bodmer.

I've implemented TFT_eFEX.

I now have a problem with the images. The following image is not right. IMG_20210302_205633

It should look like: image

I have other images with the same behaviour.

I've tried changing tft.setSwapBytes(true); to tft.setSwapBytes(false); but it has no effect.

Please help.

_Originally posted by @stephensaid in https://github.com/Bodmer/TFT_eSPI/issues/1018#issuecomment-789177553_

Bodmer commented 3 years ago

I don't have enough information to help. You need to provide a complete sketch that illustrates the problem and describe your hardware setup.

fotosettore commented 3 years ago

hi the same for me ... the sketch is the demo : Rotated_Sprite_3 and image is the original eye. thanks for help!

Bodmer commented 3 years ago

@fotosettore the OP question is for TFT_eFEX, Rotated_Sprite_3 in an example of TFT_eSPI so please raise a new issue.

stephensaid commented 3 years ago

Dear Bodmer,

Hope you are doing well.

It has been a while but had other things to work on and temporarily abandoned this project. I appreciate that you have left this issue open since then.

I updated TFT_eSPI to 2.3.70 and am running TFT_eFEX 0.0.8.

Please view the source here.

This is very much under construction and I am learning as I go.

As soon as you run the code, the first thing you will see is the splash screen which I have posited in my first post. There are other icons that have the same issue. You might want to replace config_sample.txt with config.txt and edit SSID and Password. Be sure to upload config.txt and most importantly the images and fonts to SPIFFS.

Many thanks in advance. Stephen

stephensaid commented 1 year ago

Hi,

Changing fex.drawJpeg to fex.drawJpgFile fixed this issue.