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.
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.