Displaying images from SD on Cardputer causes reboot
-
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 -
@jasdo8120 drawImage currently only supports paths under the littlefs file system and does not support displaying images in SD.