i cannot get rp2040 to play gif
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- clug555
- Posts: 6
- Joined: Sat Jun 03, 2023 9:12 pm
i cannot get rp2040 to play gif
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!!!
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: i cannot get rp2040 to play gif
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.
- clug555
- Posts: 6
- Joined: Sat Jun 03, 2023 9:12 pm
Re: i cannot get rp2040 to play gif
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!!!!!
- clug555
- Posts: 6
- Joined: Sat Jun 03, 2023 9:12 pm
Re: i cannot get rp2040 to play gif
I also resized a the badger gif to 120x120 to make sure the resolution was under what the screen can handle.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: i cannot get rp2040 to play gif
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.
I have this setup in my office so I can verify if anything has changed with the current circuitpython release and libraries.
- clug555
- Posts: 6
- Joined: Sat Jun 03, 2023 9:12 pm
Re: i cannot get rp2040 to play gif
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 (718.26 KiB) Viewed 92 times
-
- wiring2.jpg (842.83 KiB) Viewed 92 times
-
- wiring1.jpg (833.84 KiB) Viewed 92 times
- clug555
- Posts: 6
- Joined: Sat Jun 03, 2023 9:12 pm
Re: i cannot get rp2040 to play gif
I also do not have the battery "system" installed because i will always have power supplied to the board
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: i cannot get rp2040 to play gif
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.
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:
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.
Open the serial console and make sure that the GIF player output is scrolling along.
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
Open the serial console and make sure that the GIF player output is scrolling along.
- clug555
- Posts: 6
- Joined: Sat Jun 03, 2023 9:12 pm
Re: i cannot get rp2040 to play gif
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.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: i cannot get rp2040 to play gif
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.
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.
Please be positive and constructive with your questions and comments.