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

    [UIFlow] [Core/Core2] Add image block to show images like JPG on display

    Features Wish List
    1
    2
    4.1k
    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.
    • M
      mb
      last edited by

      Add UIFlow image functionality to easily display images like JPG on Core display.

      Support images from flash and micro SD card.

      1 Reply Last reply Reply Quote 0
      • M
        mb
        last edited by

        Ok, I now found the image function on the left side of the Core in UIFlow.

        I was looking for it in the regular list of blocks, especially in "Graphic".

        from m5stack import *
        from m5stack_ui import *
        
        screen = M5Screen()
        screen.clean_screen()
        screen.set_screen_bg_color(0xFFFFFF)
        
        image0 = M5Img("/sd/images/sled150.png", x=0, y=0, parent=None)
        

        It would be great if it could also show JPG files, they still seem to be more common.

        Note that lcd.image() can display JPG files, but it crashes loading from micro SD card.

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