Comments (7)
If you have enough memory, it should work on any CPU. Have you encountered a problem? What code have you tried?
from animatedgif.
Hello
Play_all_sd_files.ino file
does not recognize SPI.begin (int, int, int, int);
does not recognize SD.begin (int);
Try with
SPI.begin ();
SD.begin (); , compiles but st7789_nocs flashes does not show images
Features STM32F401
STM32F401CEU6 Core board V3.0
Switching 84Mhz ROM: 64KB RAM: 256KB
lcd st7789_nocs
https://es.aliexpress.com/item/32950879136.html?spm=a2g0o.productlist.0.0.1138310bcIEShv&aem_p4p_detail=20210616064842844622267999950007436758
Arduino IDE compiler (stm32duino)
https://github.com/stm32duino
regards
from animatedgif.
I have all of that equipment - I'll give it a try and make any necessary changes to make it work.
from animatedgif.
It compiles file without modifying anything. It sounds like you're having issues with SPI not configured correctly. Have you probed the MOSI and CLK lines to see if you've told it the correct pin numbers? I know that the software works, so I can't help with your particular setup. Do you have an SD card connected to your STM32? Have you tested that it reads the file successfully? There are too many parts to fail for me to help you. Why not try the demo code which draws a GIF file from memory first? That eliminates one of the unknowns in your setup.
from animatedgif.
@jhonnyx161 you can eventually try this:
SPIClass *my_spi = new SPIClass(mosi, miso, sclk, ssel /* default= (uint8_t)NC */);
my_spi->begin( cs_pin );
// then later
SD.begin( sdcard_cs_pin, *my_spi );
from animatedgif.
extract a GIF file from memory works
play_all_sd_files.ino does not work returns the following error
play_all_sd_files: 158: 51: error: no matching function for call to 'SPIClass :: begin (int, int, int, int)'
158 | SPI.begin (SCK_PIN, MISO_PIN, MOSI_PIN, SD_CS_PIN);
| ^
In file included from C: \ Users \ jhonn \ OneDrive \ Documents \ ArduinoSTM32 \ AnimatedGIF-master \ AnimatedGIF-master \ examples \ play_all_sd_files \ play_all_sd_files.ino: 3:
C: \ Users \ jhonn \ AppData \ Local \ Arduino15 \ packages \ STM32 \ hardware \ stm32 \ 1.9.0 \ libraries \ SPI \ src / SPI.h: 154: 10: note: candidate: 'void SPIClass :: begin ( uint8_t) '
154 | void begin (uint8_t _pin = CS_PIN_CONTROLLED_BY_USER);
| ^ ~~~~
C: \ Users \ jhonn \ AppData \ Local \ Arduino15 \ packages \ STM32 \ hardware \ stm32 \ 1.9.0 \ libraries \ SPI \ src / SPI.h: 154: 10: note: candidate expects 1 argument, 4 provided
exit status 1
no matching function for call to 'SPIClass :: begin (int, int, int, int)'
from animatedgif.
There are multiple implementations of the SD library and I can't account for all of them in my example sketches. You'll have to solve this one yourself.
from animatedgif.
Related Issues (20)
- Sketch is too big HOT 1
- a example for tft_espi sd gif HOT 15
- Question, How better write text over the GIF animation ? HOT 4
- Stop a GIF mid playing HOT 1
- How to display text on GIF for every frame HOT 2
- GIF not rendering properly HOT 1
- GIF Encoder HOT 3
- Unable to loop: GIF_EMTY_FRAME after call to reset() HOT 1
- The ucLZW buffer access violaton HOT 6
- What happens when there is no palette at all? HOT 1
- Ways to improve speed on esp32-s3 HOT 38
- Suggestion: gain a little more performance by engaging the non-aligned memory access. HOT 3
- Playing a custom GIF from memory HOT 1
- GIFs look scrambled on 72x40 OLED Display HOT 4
- Memory pointer GIFFILE::pData not const HOT 4
- Problem with shifting the image output point with tft_eSPI library HOT 1
- Possibility of change GIF speed HOT 2
- turbot_t_qt_example is missing allocFrameBuf() call HOT 4
- Loop count documentation and also does not work as expected HOT 4
- GIF-image has pixel failures on TFT-Screen HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animatedgif.