Thank you for your answer.
this is output on tft, (sorry idk how to upload in this comment so i use imgur) :
https://imgur.com/a/llbUmPD
--and 2 file that i uploaded to SPIFFS:
https://imgur.com/a/QXzxq16 ( filename : qr.bmp)
https://imgur.com/a/DYjWIhd ( filename : file.bmp)
1. Did you monitor the serial console in the Arduino IDE for errors?
-> Yes, and i got something like this:
--->
Bit Depth: 1
In drawBmpFromFile
Bit Depth: 1
In drawBmpFromFile
Bit Depth: 1
---and after several second
In drawBmpFromFile
In drawBmpFromFile
2. How did you confirm the .bmp actually is on SPIFFS where it is expected?
because i upload file.bmp and other using FTP client, i make wemos a ftp server by uploading code from :
https://github.com/nailbuster/esp8266FTPServer
and when i try your code "....... Serial.printf(" (%d byts)\n", f.size());".
it prints all of my uploaded file.
3. Note that SPIFFS is a flat file system without direct directory support. '/' is a regular character in a filename (can be used to simulate directories).
Ofcourse i know this. so i change "only" this line of code:
gfx.drawBmpFromFile("file.bmp", 10, 40 + counter);
to
gfx.drawBmpFromFile("/file.bmp", 10, 40 + counter);
and i got that that result i said in no.1.
if i not included "/" char i got result :
"File not foundIn drawBmpFromFile"