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

    Displaying images from SD on Cardputer causes reboot

    UiFlow 2.0
    2
    2
    417
    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.
    • J
      jasdo8120
      last edited by

      Re: Problem reading images from sd in cardpuer

      I have placed several JPG files on an SD card with the intent of display them on the Cardputer screen as needed. Unfortunately, I have run into a fatal issue where the Cardputer reboots when attempting to display images.

      Test:
      The same JPG image was placed on both the SD card (1 GB FAT) and the internal flash storage. Displaying the image from internal storage works as expected. Displaying from SD card causes the Cardputer to reboot.  This is true for both methods below:

      Works:
      Display.drawImage("/flash/res/img/image.jpg", 0, 0)
      image0 = Widgets.Image("/flash/res/img/image.jpg", 0, 0, scale_x=1, scale_y=1)

      Reboots:
      Display.drawImage("/sd/image.jpg", 0, 0)
      image0 = Widgets.Image("/sd/image.jpg", 0, 0, scale_x=1, scale_y=1)

      I am able to perform other operations on the SD card, which suggests the interface is working correctly. Looking for any assistance in this matter.

      Note:
      UiFlow 2.1.5 on Card Computer

      lbuqueL 1 Reply Last reply Reply Quote 0
      • lbuqueL
        lbuque @jasdo8120
        last edited by

        @jasdo8120 drawImage currently only supports paths under the littlefs file system and does not support displaying images in SD.

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