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

Display JPG and BMP images for wrover kit V3 with ILI9341 #40

Open
jjfretired opened this issue May 28, 2018 · 1 comment
Open

Display JPG and BMP images for wrover kit V3 with ILI9341 #40

jjfretired opened this issue May 28, 2018 · 1 comment

Comments

@jjfretired
Copy link

Here are the changes I made to the ESP32_TFT_library to display jpg and bmp images. It will display the test images. If you add images you have to add code in tft_demo.c. I added images and had to
increase the flash size. I used FastStone Photo Resizer to reduce my jpg files down

    run - make menuconfig
            Serial flasher config
                    change ttyUSB0 to ttyUSB1
                    change (if needed) Flash size (2 Mo)
                            tp (4 MB)

            TFT Display Demo configuration
                    change (if needed) (1048576) Size in bytes

                    Select predefined display confuration (None)
                            change to M5Stack TTF display

    in main/tft_demo.c

            add  after #include "spiffs_vfs.h"

                    #include "esp_vfs.h"


            add  in function disp_images() after disp_header("JPEG IMAGES");

    sprintf(tmp_buff, SPIFFS_BASE_PATH"/images");

"JPG-BMP" 124L, 5528C written 1,1 Top

@bishibashiB
Copy link

HI @jjfretired ,
JPG worked for me but the BMP driver only allows for a 40Byte BMP file header 'BITMAPINFOHEADER' .
Did you get around it or do you have a tool to convert to this BMP sub-type?

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

2 participants