Hello, how can I clear the display eg lcd.clear (); not tft.fillScreen (ST7735_WHITE);
2.and how to display gif
You "clear" a TFT screen by filling it with BLACK (or some other colour)
Displaying a GIF is fairly complicated. Do you just want a static image or an animation ?
It might be easiest if you just provide a link to the actual GIF you want to display.
David.
Thank you very much, filling it with BLACK or some other color very slowly.how to provide a link to a gif
Just provide a link to the GIF you want to display. e.g. find the GIF on the Internet. Copy-Paste the URL.
If I knew how to attach a file, you could attach the file. You might need to change the file extension.
It looks as if you can use the Upload icon to insert the GIF directly into your message. Perhaps like this:

thank you is it possible to do this on the display
It is possible, you could convert the gif into a sequence of jpg images, then upload them to a microSD and call them in sequence using the JPGDEC library. I don't know if the 2560 can handle the workload that is required
From memory, the Mega2560 has enough SRAM to decode the GIF images. Fine for static GIF images. But will be pretty SLOW for GIF animations.
David.
thank you do you have a sketch for gifs and an app for encoding
You encode a GIF via a PC application or via a website like Animated GIF Maker
I have a sketch that displays GIFs from SD card or Flash Memory. I will have to check whether it runs on a Mega2560. I have only used it with proper 3.3V targets like Zero, Due, ESP8266, ESP32, Teensy3.2, Teensy4.0
I am intrigued by your 160x80 title. I have never seen a 5V tolerant 160x80 display.
I think that I might have a 160x80 somewhere. Otherwise I will test with a 3.3V Red SPI 160x128 display (and the appropriate level shifters)
David.
Most animated GIF files are bigger than 32kB. This means that you can't access as arrays in Flash memory.
This is why I asked for an example GIF from you.
There are many other ways of doing small animations. But you have never said whether you want a static image or a moving animation.
Life is much easier if you buy a proper 3.3V board.
David.
Thank you very much, what board do you recommend so that it has a lot of pins like arduino mega
Teensy 4.1 for example
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.