🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Displaying JPEG Images on M5StickC

    M5 Stick/StickC
    3
    3
    6.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • o.coplestonO
      o.copleston
      last edited by

      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?

      B 1 Reply Last reply Reply Quote 0
      • B
        boverby @o.copleston
        last edited by

        @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

        F 1 Reply Last reply Reply Quote 0
        • F
          frexetat @boverby
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post