9 years ago.

How to use DrawBitmap() function in lcd_base.h

Hi, I am using the TFTLCD and TFTLCD_8bit libraries. You ppl have done awsome effort in building such a good library.

I am trying to display the image stored in the SDcard on my 240*320 display using 8bit parallel interface and ili9328.h library. I am not able to understand how to load the file from the sd card and then give it to DrawBitmap() function.

I tried this code but compilation error is displayed. FILE *fp = fopen("/SD/mydir/sunset1.bmp", "r");

if(fp == NULL) { error("Could not open file for write\n"); } lcd.DrawBitmap(0,0,fp,1);

Kindly help me as soon as possible. Thank you in advance

Question relating to:

This is a port of Henning Kralsen's UTFT library for Arduino/chipKIT to mbed, refactored to make full use of C++ inheritance and access control, in order to reduce work when … HX8340, ILI9325, ILI9328, ITDB02, LCD, SSD1289, ST7735, TFT, UTFT
Be the first to answer this question.