Open GarnetUngar opened 4 days ago
270 is the closest, the image is all there, but it is chopped up and rearranged in a weird way.
Hold on, still have to try 180
180 no good
is there any other GIF you could try ?
270 seams to be good the axis seams to be reversed, you could try : tft.begin(LCD_ST7789_135, FLAGS_FLIPX, 40000000, TFT_CS, TFT_DC, TFT_RST, TFT_BL, TFT_MISO, TFT_DIN, TFT_CLK);
That resulted in a slightly different slicing up of the image. Now converting a new gif file to try...
I downloaded a 240x135 gif and converted it to a .h file, but got this error:
C:\Users\Griselda Grumpy\Documents\Arduino\AnimatedGIF340_240\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2.ino: In function 'void setup()':
C:\Users\Griselda Grumpy\Documents\Arduino\AnimatedGIF340_240\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2.ino:40:22: error: request for member 'h' in 'QvSe', which is of non-class type 'const uint8_t [349406]' {aka 'const unsigned char [349406]'}
40 | #define GifData QvSe.h // Change image to display (image name in gif_files[image header file].h)
| ^
C:\Users\Griselda Grumpy\Documents\Arduino\AnimatedGIF340_240\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2.ino:50:28: note: in expansion of macro 'GifData'
50 | gif = openGif((uint8_t )GifData, sizeof(GifData));
| ^~~
C:\Users\Griselda Grumpy\Documents\Arduino\AnimatedGIF340_240\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2.ino:40:22: error: request for member 'h' in 'QvSe', which is of non-class type 'const uint8_t [349406]' {aka 'const unsigned char [349406]'}
40 | #define GifData QvSe.h // Change image to display (image name in gif_files[image header file].h)
| ^
C:\Users\Griselda Grumpy\Documents\Arduino\AnimatedGIF340_240\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2\AnimatedGIF340_240_for_ST7789v_version_2.ino:50:44: note: in expansion of macro 'GifData'
50 | gif = openGif((uint8_t )GifData, sizeof(GifData));
| ^~~
exit status 1
Compilation error: request for member 'h' in 'QvSe', which is of non-class type 'const uint8_t [349406]' {aka 'const unsigned char [349406]'}
I looked at the code for that .h file and the only difference seems to be this line: GIF, Compression=LZW, Size: 240 x 135, 7-Bpp
where all the other gifs say 8-Bpp
zip the original gif you tried and post it here, i will give it a try
no i mean the .h file of the gif you tried before, the one that got scrambled
Sorry, I think you mean this one: Sickbay_11_26.zip
You are a science fiction fan, recognize it?
star trek
yep
This is bizarre. I got the new gif to work, but it mixed with the old one ?!?https://github.com/user-attachments/assets/ac95e9e2-ff49-42a5-86cc-aa6762424322
it's working fine on my side. There is clearly a bug in the bb_spi_lcd library with the ST7789_135 and if I look at the code, the bug will still appear with a version that is not "V"
Bug spray?
We could use another graphic library (TFT_eSPI), that could support your display, it involved more steps though because this library requires editing configuration files in the library, not in the sketch.
I'm sorry this is such a pain, and again, I so appreciate all your time and expertise. Could we try using the TFT_eSPI library?
Just curious, I think you are Quebecois? I grew up in Montreal but have been in exile in the USA for many years...
Thank you so much for all your help. Should I look elsewhere at this point, or do you have more time for me? Thanks again!