Open wazsxr opened 3 years ago
Hi Warren, what's displayed in the Serial Monitor when this runs?
Hi Louis, Thanks for getting back to me so quick, the monitor has the following output:
1:TRAIN-~1.GIF size:657029
2:MACE-R~1.GIF size:711138
Pathname: /gifs/TRAIN-~1.GIF
open failed: 2
Pathname: /gifs/TRAIN-~1.GIF
open failed: 2
Pathname: /gifs/TRAIN-~1.GIF
open failed: 2
This repeats over and over.
-Warren
The error is the gif is too wide. Do the sample GIFs or another gif resized to 64x64 work?
https://github.com/bitbank2/AnimatedGIF/blob/master/src/AnimatedGIF.h#L70
Spot on, thanks heaps for that. I did warn that I was a noob with this, I just assumed it would resize any image before displaying it and that's why I was setting the matrix width and height. Is the image supposed to be centred as well (if not exactly 64x64)?
I should probably add more documentation... not enough time...
Is the image supposed to be centred as well (if not exactly 64x64)?
My code currently doesn't center a smaller image on the screen, it will display in the upper left.
Check out ezgif.com for resizing, etc
Hi, I'm very new to Arduino and only found it when wanting to get some GIF pixel art on my wall. I've purchased a Teensy 4.1, SmartLED shield V5 and a 64x64 RGB LED board. I've been able to get the SmartMatrix featuredemo to work but when trying to run the AnimatedGif, all I'm getting is a blank board, no LED's lighting up at all. I have also tried without an SD card, and with no GIF files in the directory and I get an output letting me know there is no SD card or Gif files respectively. I would really appreciate some help as to where I'm falling over. This is my sketch which appears to compile just fine:
This is the verbose logs of when it's compiling:
Any help would be greatly appreciated, please let me know if there is anything else I can include to help with diagnosing what is wrong here.
-Warren