hello, im using the tft_espi library with an esp-wroom-32 development board (dual core) wired to a 240x240 ips st7789 tft. my required guidance is completely coding based, as my hardware has been working fine. im trying to display a 15 second mp3 video on my tft. so far, ive managed to display rgb565 images on the display, and also managed to refresh the image faster than my eye can see i do this by drawing the image, cutting power to the display, then powering up the display and then drawing the image again. this is a far faster way of clearing the display than filling the display with black.
the main issue is, what sort of software could i use to take my mp3 video, break it down into frames, then convert each one of those frames into an array of rgb565 data. after that its as easy as getting the esp to cycle through each rgb565 frame array, applying the unusual clearing method between frames. im free to supply any extra information
#include <TFT_eSPI.h> // Include the graphics library (this includes the sprite functions)
TFT_eSPI tft = TFT_eSPI(); // Declare object "tft"
#include "myimage"
void setup(){
Serial.begin(115200);
Serial.println();
tft.begin(); // i
// Initialise the TFT registers
tft.init();
// Optionally set colour depth to 8 or 16 bits, default is 16 if not spedified
// spr.setColorDepth(8)
tft.setSwapBytes(true); // Swap the byte order for pushImage() - corrects endianness
pinMode(25,OUTPUT);
}
void loop(void)
{
digitalWrite(25,HIGH);
tft.pushImage(0,0,240,240,background);//"background" is the rgb565 image data stored in the "myimage" file
digitalWrite(25,LOW);
}
the rgb565 array image file i use:
text.zip (18.5 KB)