Mini Gif Player Help

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ZimZam
 
Posts: 6
Joined: Sun Jan 22, 2023 12:00 pm

Mini Gif Player Help

Post by ZimZam »

Hello,
I am currently looking into making the mini gif player. I purchased all the parts followed the guide and even got the pinouts right, but for some reason my screen just shows a small blueish box with static around it. does anyone know if that means it is firmware or hardware that is causing that and how to remedy it.
Thanks in advance,
Zim

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Mini Gif Player Help

Post by mikeysklar »

It is most likely the GIF selected. Try just playing the GIF of the badger-320.gif and removing the others.

If you are on a mac you will need to make sure the dot files are getting removed entirely or it will crash the gif player.

User avatar
ZimZam
 
Posts: 6
Joined: Sun Jan 22, 2023 12:00 pm

Re: Mini Gif Player Help

Post by ZimZam »

what part of the gif could be the issue the resolution?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Mini Gif Player Help

Post by mikeysklar »

I've setup the mini gif player before and noticed that only the badger image was playing. The images do have a different resolution.

Code: Select all

$ file *
badger-320.gif:         GIF image data, version 89a, 320 x 240
blinka-320.gif:         GIF image data, version 89a, 320 x 170
BrainCraft-HAT-320.gif: GIF image data, version 89a, 320 x 170
cpx-320.gif:            GIF image data, version 89a, 320 x 170
doom-guy-JP-320.gif:    GIF image data, version 89a, 320 x 170
LED-Glasses-320.gif:    GIF image data, version 89a, 320 x 170
Other factors to think about when you start creating your own GIFs are size, number of frames and color depth.

viewtopic.php?p=951917&hilit=badger+320#p951917

User avatar
ZimZam
 
Posts: 6
Joined: Sun Jan 22, 2023 12:00 pm

Re: Mini Gif Player Help

Post by ZimZam »

it seems that it could be my screen its a 128 x128 adafruit screen but only like half is displaying anything and is all purple tinted

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Mini Gif Player Help

Post by mikeysklar »

A 128x128 display is not going to be compatible with the step-by-step instructions of this guide. You will need to create your own gifs for that resolution. Looking at the 172 folder all the images will still be too large.

Code: Select all

 $ file *
Arduino-Logo-172.gif:   GIF image data, version 89a, 320 x 172
badger-172.gif:         GIF image data, version 89a, 320 x 172
blinka-172.gif:         GIF image data, version 89a, 320 x 172
BrainCraft-HAT-172.gif: GIF image data, version 89a, 320 x 172
CPX-172.gif:            GIF image data, version 89a, 320 x 172
doom-guy-JP-172.gif:    GIF image data, version 89a, 320 x 172
LED-Glasses-172.gif:    GIF image data, version 89a, 320 x 172
The two recommended displays are:

https://www.adafruit.com/product/5393
https://www.adafruit.com/product/5394

User avatar
ZimZam
 
Posts: 6
Joined: Sun Jan 22, 2023 12:00 pm

Re: Mini Gif Player Help

Post by ZimZam »

ordered one of those screens will be here Thursday, will update accordingly thanks again!!

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Mini Gif Player Help

Post by mikeysklar »

Sounds good. Let me know if you have any issue with the new display.

User avatar
dndrive
 
Posts: 2
Joined: Sun Jan 29, 2023 1:16 pm

Re: Mini Gif Player Help

Post by dndrive »

after reading other post, that you have linked. This project has too many limitation.T_T

User avatar
dndrive
 
Posts: 2
Joined: Sun Jan 29, 2023 1:16 pm

Re: Mini Gif Player Help

Post by dndrive »

dndrive wrote: Mon Jan 30, 2023 3:26 pm after reading other post, that you have linked. This project has too many limitation.T_T
Overall I've been able to make it play gif that is not badger-320.gif.

User avatar
ZimZam
 
Posts: 6
Joined: Sun Jan 22, 2023 12:00 pm

Re: Mini Gif Player Help

Post by ZimZam »

got the screen and it seems to be working! I got some gifs to work others don't seem to be know why that is?
this is the error I get for the ones that don't work, also would you happen to know how to maybe add a button to like toggle between the gifs? Also one more question sorry for editing so many times, but I can only get the gifs to start playing if in in serial monitor do you know how to fix that too?
(Successfully opened GIF WUT.gif; Canvas size = 320 x 172
frame count: 1
duration: 100 ms
max delay: 100 ms
min delay: 10000 ms
Error 7
Error 7
Error 7
Error 7
Error 7
Error 7
0 2020-01-01 00:00 .fseventsd/
0 2020-01-01 00:00 .metadata_never_index
0 2020-01-01 00:00 .Trashes
22 2020-01-01 00:00 code.py)
thanks in advance,
Zim

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Mini Gif Player Help

Post by mikeysklar »

The GIF player likes small files < 100k, less than 10 frames and at color depth of 16.

This line of code is what requires the serial console to be opened to start running the program. You can remove it from the setup() function.

Code: Select all

  while (!Serial);

User avatar
ZimZam
 
Posts: 6
Joined: Sun Jan 22, 2023 12:00 pm

Re: Mini Gif Player Help

Post by ZimZam »

That seems to have helped thanks!! now I just gotta get the right gifs that can play :) thanks so very much for your help guys
Thanks Again,
Zim

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Mini Gif Player Help

Post by mikeysklar »

Zim,

Glad to hear you are making progress.

There is a related Adafruit guide for Mini GIF generation that might be helpful to you.

https://learn.adafruit.com/pyportal-ani ... t-your-gif

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”