Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 8 months 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