i cannot get rp2040 to play gif

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
clug555
 
Posts: 6
Joined: Sat Jun 03, 2023 9:12 pm

i cannot get rp2040 to play gif

Post by clug555 »

So I have followed this tutorial on the gif player ( https://learn.adafruit.com/mini-gif-players/overview ) except i used a adafruit 1.44 TFT ST7735R display and i skipped the battery. i cannot get this thing to play. do i have to use a ST7789 display? does a battery have to be installed? there is "#include <Adafruit_ST7735.h> // Hardware-specific library for ST7735" in the code already so it should cover this display, correct? my gif is formatted to 144 x 144. I'm a newbie and any help would be awesome!!!! thx!!!

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

Re: i cannot get rp2040 to play gif

Post by mikeysklar »

Start with just using the badger example GIF. The GIF player is quite picky about the formatting. The files need to be small ~100k with a color depth of 32 or less and a 10 frame limit.

User avatar
clug555
 
Posts: 6
Joined: Sat Jun 03, 2023 9:12 pm

Re: i cannot get rp2040 to play gif

Post by clug555 »

OK. So i went & purchased a Color IPS TFT Display - ST7789 just to make sure i am not doing anything wrong. It still will not play a gif. I am using badger.gif sample in the 170 format. i have done everything exactly as described & it will still not play. I soldered the wires from the rp2040 to the st7789 to make sure everything is correct & making the correct connections. all pinouts are wired as described in the wiring diagram. I also used the regular & beta versions of adafruit-circuitpython-adafruit_feather_rp2040-en_US-8.1.0. HELP!!!!!

User avatar
clug555
 
Posts: 6
Joined: Sat Jun 03, 2023 9:12 pm

Re: i cannot get rp2040 to play gif

Post by clug555 »

I also resized a the badger gif to 120x120 to make sure the resolution was under what the screen can handle.

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

Re: i cannot get rp2040 to play gif

Post by mikeysklar »

Can you post a photo of your wiring and soldering with the new display?

I have this setup in my office so I can verify if anything has changed with the current circuitpython release and libraries.

User avatar
clug555
 
Posts: 6
Joined: Sat Jun 03, 2023 9:12 pm

Re: i cannot get rp2040 to play gif

Post by clug555 »

Here are the pictures of the boards with the solder lines. I just soldered something up real quick to try to test this. Any help would be great. I'm trying to make a project for pinball machines. Thx!
Attachments
wiring3.jpg
wiring3.jpg (718.26 KiB) Viewed 92 times
wiring2.jpg
wiring2.jpg (842.83 KiB) Viewed 92 times
wiring1.jpg
wiring1.jpg (833.84 KiB) Viewed 92 times

User avatar
clug555
 
Posts: 6
Joined: Sat Jun 03, 2023 9:12 pm

Re: i cannot get rp2040 to play gif

Post by clug555 »

I also do not have the battery "system" installed because i will always have power supplied to the board

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

Re: i cannot get rp2040 to play gif

Post by mikeysklar »

Thank you for the pics. Your soldering looks reasonable and neat. More heat would be good to smooth out the flow, but I do not think that is the issue.
IMG_2023-6-13-114358.jpeg
IMG_2023-6-13-114358.jpeg (211.08 KiB) Viewed 78 times
I loaded up my 1.9” (170 x 320) ST7789 display with the badger-320.gif (do not use the 170). The code built without issue. I’m running the latest stable releases:

Code: Select all

MacOS Ventura 13.3.1
CircuitPython 8.1.0 
Arduino IDE 2.1.0
AnimatedGIF 1.4.7
Adafruit SPIFlash 4.1.3
Adafruit GFX 1.11.5
Adafruit ST7735 and ST7789 1.10.0
If you are also on a mac be careful to delete all the “dot files” from the CIRCUITPY before uploading the code. This is a MacOS specific issue that will gum up the GIF player.
Screenshot 2023-06-13 at 11.11.37 AM.png
Screenshot 2023-06-13 at 11.11.37 AM.png (487.25 KiB) Viewed 82 times
Open the serial console and make sure that the GIF player output is scrolling along.

User avatar
clug555
 
Posts: 6
Joined: Sat Jun 03, 2023 9:12 pm

Re: i cannot get rp2040 to play gif

Post by clug555 »

OK. I am working in Windows and not on a Mac. I have everything wired correctly (as you can see), i load everything the way the website states but it will not play. I am using the badger320 version now. I have all of the newest apps/files. I tried a TFT7735R display & now a TFT7789. I get a lit screen with nothing else. I am new at this so i do not know how to run a "Open the serial console and make sure that the GIF player output is scrolling along." I believe at this point i am giving up on wasting more $ and time on this project. The site makes it sound easy & i'm not a complete moron but i feel like it on this project.

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

Re: i cannot get rp2040 to play gif

Post by mikeysklar »

You can do this. It is a difficult guide due to all the steps so it takes a few passes to pull everything together.

Make sure you have followed the Arduino Usage section which means installing the Philhower core. I see that getting skipped on occasion as it is just a link.

Use the Arduino IDE to open the serial monitor under Tools —> Serial Monitor (Ctrl-Shift-M).

If you have a multimeter check that each of the wires between the Feather and display have good conductivity on both sides of the PCB.

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

Return to “Adafruit CircuitPython”