Its possible use AnimatedGIFs example code with SDIO SD card, instead of with SD by SPI ?
In my custom boards, I install always SDIO 4bit parallel SD card access, because its faster than SPI, now I need play some animated GIF, and need store and read files from SD by SDIO.
No, I design all my boards, its a custom board with a Kinetis MK66 (same that install Teensy 3.6), and a SD card socket connected by SDIO 4bit parallel. SD schematic is same that Teensy 3.6.
I have SdFAT library for Teensy 3.6 (this support SDIO), tested work fine, but also need that AnimatedGIFs code support SDIO instead of SPI, because my schematic connect SD by SDIO.
I have apply modification and yes, now work with SDIO.
But I have a problem, imagen blink, I do not know if this is because of this modification, but I remember first tests I made with SD by SPI, and the image was perfect, did no blink.
This is configuration in source code, same I used with first test by SPI.
Thanks Louis, I will check. Though with Teensy 3.2 and SPI SD, works perfectly without modify Smartmatrix sources. I do not know if problem is with Teensy 3.6 or with SDIO modification.
Hello Louis
But then it’s possible that it works fine with Teensy 3.2 and fail with Teensy 3.6 ?
I remember now, my first test was with Teensy 3.2 and SD by SPI, and worked perfect.
I’ve thought that perhaps problem with AnimatedGIF and Teensy 3.6, is because of MK66 is faster and then may be need modify source code to change delay between frames (to remove blinks).
I can run Smartmatrix with MK66 with another source code and it works fine, so I think it’s not a Smartmatrix library problem, but specifically the AnimatedGIF source code.
I’ve looked at the source code, and I think if I modify the calculation of the delay between frames (nextFrameTime_ms), it could work fine with Teensy 3.6 and my custom board with Kinetis MK66.
What do you think about it ?
// wait until time to display next frame
while(nextFrameTime_ms > millis());
// calculate time to display next frame
nextFrameTime_ms = millis() + (10 * frameDelay);
if(updateScreenCallback)
(*updateScreenCallback)();
Thank you Louis,
I will do some source modification tests to see if I fix AnimatedGif problem with Kinetis MK66. If you solve problem, please share solution.