Displaying JPEG Images on M5StickC

  • I'm in the process of constructing a WiFi based reverse camera for my car. I'm successfully sending a JPEG stream from an ESP32Cam to my M5StickC which I wish to display on the LCD. Looking at the M5Display library, half the code is essentially disabled, including the drawJpg() function which I need to use.

    I've tried uncommenting all of that and the prerequisite functions but have had no luck in displaying any images.

    Has anybody got a solution to displaying JPEGs?

  • @o-copleston

    Don't know if you are still plugging away, but I was able to use another library from Bodmer. github TJpg_Decoder. I read a jpeg from a web server elsewhere , chunk it into an array and call

    #include <TJpg_Decoder.h>
    TJpgDec.drawJpg(0, 0, buffer, bufferlength );

    liberally copied from Web_Jpg example

  • @boverby
    the link is dead would you mind sharing your code ?
    I am trying to stream to a m5stickc plus, what you did would be a good reference to look at ! thank you