🤖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

    Scheduled Pinned Locked Moved M5 Stick/StickC
    3 Posts 3 Posters 8.2k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post