TftBmpFromSD(sFileName As String * 13, wX_Pos As Word, wY_Pos As Word), Byte
|
Parameter |
Description |
|
sFileName |
The file name of the BMP image to print (max 12 characters, including the file extension). |
|
wX_Pos |
The X-position of the lower left corner of the image on the screen. |
|
wY_Pos |
The Y-position of the lower left corner of the image on the screen. |
|
Value |
Meaning |
|
0 |
No error |
|
1 |
No response from SD card |
|
2 |
SD card not formatted with FAT16 or FAT32 |
|
3 |
File not found |
|
4 |
File is in use |
|
5 |
Read/write error |
|
99 |
Out of screen borders |
This procedure prints a BMP file from an SD card formatted with FAT16 or FAT32. The BMP file must meet specific requirements as no image processing is performed.
You can convert images to the correct format using online tools, such as this one.
Alternatively, you can use the included SdCardWriteRGB565 library tool to convert and upload the BMP file to the SD card.
TftBmpFromSD("PIC001.BMP", 0,0)
Note: No need to initialize the SD card with File_Init() before using this command.
|
TftSetUp(0, 0) TftBmpFromSD("cat.bmp", 0,0) DelayMS 1000 TftBmpFromSD("dog.bmp", 0,0) DelayMS 1000 TftBmpFromSD("button.bmp", 73,85) TftBmpFromSD("button.bmp", 130,165) |
|
Created with the Personal Edition of HelpNDoc: Streamline Your Documentation Process with a Help Authoring Tool