Hello..I want to draw many animations on my OLED..but my UNO hasnot enough space to store so-many animation-frames..how i can store the animation frames(converted to byte code) at a SD card..and source it to the main arduino code?
What have you tried ?
Have you looked at and tried the examples with the SD card library ?
No, you cannot do that.
C language is compiled into low-level machine instructions on the PC and only the machine instructions are uploaded to the Arduino. The Arduino cannot read C code from an SD card and compile it into machine instructions in order to run it.
However, you could convert the animation frames into data in some format that the Arduino could read from the SD card and display. You would need to decide for yourself what format the data would be in and write code to read that formatted data and display it.
What format are your animation frames currently in?
However, there is no reason why data describing the animations could not be stored on the SD card, read in and interpreted by the sketch
Actually GIF images ar converted to many frames..then this frames are converted to BITMAP format..like this image..
I want to store THIS bitmap format on the SD card to reduce the space..because each pixel is 2byte.. How I can STORE this bitmap text to SD card and import it on arduino when needed?
Actually GIF images ar converted to many frames..then this frames are converted to BITMAP format..like this image..
I want to store THIS bitmap format on the SD card to reduce the space..because each pixel is 2byte.. How I can STORE this bitmap text to SD card and import it on arduino when needed?
Can I save this bitmap format as a text on SD card..and source it to the main code?
I use this page to convert image files into raw byte code data that you can send into the MCU to display or save into a file that the Arduino can read and display directly (no need to decode with bitmap or jpeg libraries)
How can i save that byte code to SD card...and import to arduino main code so that it easily understant tthat?
Should i save the byte code as a "txt" file at SD card?
Doesn't really matter what filename to use. Each two bytes in the file represent a pixel
I want to show many animations/GIF to my OLED.. But arduino hasnot enough space to store the byte code of(animated frames)
How can I play the gif's directly from SD card on OLED..to reduce the size of main skectch code?
duplicate topics merged
Why did you start a new topic ?
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.
Continued cross posting could result in a time out from the forum.
Could you also take a few moments to [url=https://forum.arduino.cc/index.php?topic=710766.0]Learn How To Use The Forum[/url].
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
Thanks for reminding me..I will be careful From next time..Actually i am new to this forum..for this i was unaware of this rule
No harm done, but please don't do it again
Your new topic (now reply #11 in this topic) has no context as to what you are doing and why which means that helping you would require asking questions and you providing details which were already in this topic
The OP posted an OLED question in the Displays Forum which was immediately locked.
Surely "Displays" is the appropriate Forum. And the OP's question is pretty easy to answer.
David.
Convert each frame of the GIF into raw byte code data. Save and name them sequentially in the SD card, and display each file sequentially in the OLED
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.