Does anyone have the sd card and display both working on an m5stack (with psram)? If so, can you share the configuration.
SOLVED Using sd card on m5stack
|
(03-21-2018, 05:49 PM)slzatz Wrote: Does anyone have the sd card and display both working on an m5stack (with psram)? If so, can you share the configuration. Use the following initialization:
There are some issues with using SPI and SDCard in SPI mode at the same time in esp-idf. I've had to use a special SPI handling to solve it. As a result, it now works without problem, except that displaying images from sdcard is performed without using DMA and is much slower than from internal filesystem. All other display functions runs with the same performance. Tested with M5Stack 2018 with psRAM, but should also work on any M5Stack without psRAM.
03-21-2018, 08:42 PM
Boris, worked perfectly. Thanks, Steve
03-22-2018, 03:44 PM
OK. Declared the problem solved a little prematurely.
The issue is that tft.image(...) does not display anything on the m5stack screen. Text displays fine but when I try to display an image the call just returns and nothing happens. This is what I have tried: 1) Made sure the jpg image was baseline only. 2) Tested a small 240 x 240 image 3) Moved the image from the sd card to flash 4) Tried a bitmap image instead of a jpg 5) ran jpegtran on the image When I do file on the image, I get: test_image.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 72x72, segment length 16, baseline, precision 8, 240x240, frames 1 The fact that tft.image(...) just returns silently seems a little odd but, in any event, this is the first time that I had tried to display an image (as opposed to text, which works fine) on the m5stack. I am running current software (although not updated to the last commit related to LittleFS). Any thoughts would be much appreciated.
03-22-2018, 04:46 PM
There are some limitations for images, from Wiki:
Quote: Attached is one of the files tested to work both from sdcard and internal fs.
03-22-2018, 05:27 PM
Thanks. That worked. I'll try to figure out what the issue is with the image I was testing with.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)