adafruit / Adafruit-GFX-Library

Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from
https://learn.adafruit.com/adafruit-gfx-graphics-library
Other
2.39k stars 1.54k forks source link

drawRGBBitmap on SSD1351 #304

Open nygma2004 opened 4 years ago

nygma2004 commented 4 years ago

I have used drawRGBBitmap on a neopixel display in the past and I wanted to reuse the same logic on an SSD1351 128x128 display. I am using the drawRGBBitmap because I would like to display a full screen animation that I store as frames in PROGMEM. I created my variable as: static const uint16_t PROGMEM bitmap_frames[][16384] = {....}; since 128x128 is 16384 pixels. I used LCD Image Converted to convert my image from bitmap to R5G6B5 format.

I am displaying the first frame as: tft.drawRGBBitmap(0,0,bitmap_frames[0],128,128);

The image is getting displayed correctly, but 1/4 size on the top left corner and duplicated next to it to the right. So the image is showing twice on the top half of the screen. Colour and image aspect is correct. All the examples I have found for displaying image is loading the images from the SD card and use drawBitmap, but not drawRGBBitmap. Is this not working for SSD1351?

I am using Arduino IDE 1.8.13, board manager files and the libraries have been updated today. I am driving the display from a Wemos D1 mini, and the test sketch is running correctly on the display.

nygma2004 commented 4 years ago

Is drawRGBBitmap is not supported on the SSD1351?

tsk15535904190 commented 3 years ago

我也遇到了相同的问题,请问你解决了吗?

nygma2004 commented 3 years ago

我也遇到了相同的问题,请问你解决了吗?

No, still waiting for a response from the author.

tsk15535904190 commented 3 years ago

I use stm32 ,succeed display image!