![ST Nucleo STM32F302R8 Скачать руководство пользователя страница 16](http://html1.mh-extra.com/html/st/nucleo-stm32f302r8/nucleo-stm32f302r8_user-manual_1355921016.webp)
FAQs
UM1784
16/18
DocID026524 Rev 2
5 FAQs
How can I use this application to display my own images?
Use any image editing tool and crop your image to no larger than 160 pixels high and 128
pixels wide. Save it as a 16-bit color BMP format file.
Can I display more bitmap files?
Yes. You can display more pictures, by copying them under the microSD root directory. Just
modify the define value of MAX_BMP_FILES constant to the desired number of files. In this
case, you must fine tune the _FS_LOCK value, defining the number of files that can be
opened simultaneously, under “ffconf.h” the FatFs configuration file.
What about putting the bitmap files not under the root directory of the microSD?
Once put under another folder different from the root directory, the bitmap files cannot the
accessed by the demonstration application. The “File type not supported” error message is
displayed on the LCD.
To make it work you have to add the new directory path within f_open() and f_opendir()
FatFs APIs calls’ under the fatfs_storage.c file.