EPS-32 Wrover TFT-eSPI question to display JPEG

ve2dx@hotmail.com
Posts: 2
Joined: Sat Mar 26, 2022 10:26 pm

EPS-32 Wrover TFT-eSPI question to display JPEG

Postby ve2dx@hotmail.com » Sat Mar 26, 2022 10:29 pm

Hello Gang
I am trying to display on an ESP32 WROVER using TFT_ESPI an image that was converted to HEX.

the hardware platform is a WT32-SC01.

Here is a simple example of the resulting code in my image.h file

Code: Select all

#include <pgmspace.h>  // PROGMEM support header

PROGMEM const uint8_t smeterTop[]={
0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 
0x00, 0x01, 0x00, 0x00, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x03, 0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 
0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x06, 0x04, 0x04, 0x04, 0x04, 0x04, 0x08, 0x06, 
0x06, 0x05, 0x06, 0x09, 0x08, 0x0a, 0x0a, 0x09, 0x08, 0x09, 0x09, 0x0a, 0x0c, 0x0f, 0x0c, 0x0a, 
0x0b, 0x0e, 0x0b, 0x09, 0x09, 0x0d, 0x11, 0x0d, 0x0e, 0x0f, 0x10, 0x10, 0x11, 0x10, 0x0a, 0x0c, 
0x12, 0x13, 0x12, 0x10, 0x13, 0x0f, 0x10, 0x10, 0x10, 0xff, 0xdb, 0x00, 0x43, 0x01, 0x03, 0x03,
On the M5Stack this was down using the following command;

Code: Select all

M5.Lcd.drawJpg(smeterTop, sizeof(smeterTop), 0, 0, 320, 20);
but this command is not in the TFT_eSPI.H library...

Does anyone know what would be the equivalent command in TFT_eSPI.H????

Help

Richard VE2DX

Who is online

Users browsing this forum: No registered users and 15 guests