[UIFlow] [Core/Core2] Add image block to show images like JPG on display
-
Add UIFlow image functionality to easily display images like JPG on Core display.
Support images from flash and micro SD card.
-
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.
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