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

    drawJpgFile / drawBmpFile

    Scheduled Pinned Locked Moved FAQS
    30 Posts 4 Posters 143.9k Views 2 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.
    • C Offline
      Calin
      last edited by

      Here is the test using your code (with small modifications and relevant comments)
      and standard m5Stack library from PlatformIO:
      0_1529610830592_corso test.jpg

      And here is the result:
      0_1529610972829_corsotested.jpg

      1 Reply Last reply Reply Quote 0
      • R Offline
        Richard
        last edited by

        fine, but does not work on ide arduino.
        can you send me your code in espi setup?

        1 Reply Last reply Reply Quote 0
        • R Offline
          Richard
          last edited by

          do you have tested my with arduino ide?
          thank you

          C 1 Reply Last reply Reply Quote 0
          • R Offline
            Richard
            last edited by

            i have install PlatformIO and load my projet:
            Wrote 230992 bytes (123957 compressed) at 0x00010000 in 11.0 seconds (effective 168.6 kbit/s)...
            Hash of data verified.

            Leaving...
            Hard resetting via RTS pin...
            ====================================================== [SUCCESS] Took 23.68 seconds =======================================
            I still have the problem!
            hardware problem?
            I

            1 Reply Last reply Reply Quote 0
            • ajb2k3A Offline
              ajb2k3
              last edited by

              Agreed, Following this myself and just get a blank screen with the image not loaded. This is my image 0_1529644400361_logo.jpg

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • C Offline
                Calin @Richard
                last edited by

                @richard No. i didn't tested with arduino "ide". I uninstalled that from my PC because is mostly useless...

                I use Visual Studio, Eclipse or PlatformIO.

                I uploaded the PlatformIO project for your code to github: https://github.com/botofancalin/M5StackJpgtest
                The M5Stack library is already installed local into project.
                All you have to do is to download the repository and compile the code.

                ajb2k3A 1 Reply Last reply Reply Quote 0
                • ajb2k3A Offline
                  ajb2k3 @Calin
                  last edited by

                  @calin 在 drawJpgFile / drawBmpFile 中说:

                  @richard No. i didn't tested with arduino "ide". I uninstalled that from my PC because is mostly useless...

                  I use Visual Studio, Eclipse or PlatformIO.

                  I uploaded the PlatformIO project for your code to github: https://github.com/botofancalin/M5StackJpgtest
                  The M5Stack library is already installed local into project.
                  All you have to do is to download the repository and compile the code.

                  Maybe a stupid question (or two) but I'm going to ask anyway.
                  Is there a hardware limitation for this i.e. is there a card size limit and a formatting requirement?
                  Is there a specific image limitation for the image?

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    Richard
                    last edited by

                    I use Visual Studio too.
                    i have just tested your programm and i still have the problem.
                    I think it's a hardware problem.
                    I'm waiting for another device
                    Thank you.

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      Calin @Richard
                      last edited by Calin

                      @ajb2k3 在 drawJpgFile / drawBmpFile 中说:

                      Is there a hardware limitation for this i.e. is there a card size limit and a formatting requirement?
                      Is there a specific image limitation for the image?

                      I think there is no limitation on card size.
                      There might be a limitation on card read/write speed and that depend on the sdcard manufacturer and model.
                      As i know, the cards formatted as FAT32 are preffered.

                      @richard 在 drawJpgFile / drawBmpFile 中说:

                      i have just tested your programm and i still have the problem.
                      I think it's a hardware problem.
                      I'm waiting for another device
                      Thank you.

                      That problem can be caused by the ILI9341 controller from the TFT.
                      If that is the case, the only solution is a replacement.

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Richard
                        last edited by

                        I use a SD 4mo FAT32

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          Richard
                          last edited by

                          and also
                          I tested with a 32mo

                          1 Reply Last reply Reply Quote 0
                          • ajb2k3A Offline
                            ajb2k3
                            last edited by

                            I have a 32gig Class 10 sdhc formatted as fat32 MBT.
                            How do I tell if I have the ILI9341?

                            UIFlow, so easy an adult can learn it!
                            If I don't know it, be patient!
                            I've ether not learned it or am too drunk to remember it!
                            Author of the WIP UIFlow Handbook!
                            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              Calin @ajb2k3
                              last edited by

                              @ajb2k3 ILI9341 is the LCD driver used by the M5Stack TFT display: https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf

                              1 Reply Last reply Reply Quote 0
                              • ajb2k3A Offline
                                ajb2k3
                                last edited by

                                Ok, failed to get it to work with the jpgdraw script but if I convert to array it works, But!!!!!!

                                I had to reduce the image to a 256bit Indexed image!

                                UIFlow, so easy an adult can learn it!
                                If I don't know it, be patient!
                                I've ether not learned it or am too drunk to remember it!
                                Author of the WIP UIFlow Handbook!
                                M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  Richard
                                  last edited by

                                  I tested my programm and my file jpg (sd 4go) with IDE Arduino 1.8.5 on another M5Stack .
                                  It works very well.
                                  The first M5stack doesn't work propely.
                                  I hope the M5stack store will change it.

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    Richard
                                    last edited by

                                    0_1529921192318_Test2devices1.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      Richard
                                      last edited by

                                      Thank you Calin!

                                      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