|
发表于 2019-11-26 10:22:01
|
显示全部楼层
本帖最后由 ding731868572 于 2019-11-26 10:43 编辑
我也不知道,你看程序,直接拿来调用就行了;GraphicsF_DrawImage( 128, MENU_X, MENU_Y);这个函数就是调用flsah里面的第128张图片, MENU_X, MENU_Y是这个图片左下角的x,y坐标
先初始化这个函数:
void demo_init(void)
{
// Initialize the SPI_FLASH driver
SPI_FLASH_Init();
// Clear the Block Protection bit
SPI_FLASH_WriteStatus(0x00);
//Graphics_Init();
GraphicsF_UpdateImageInfo();
}
我看了下源程序,把图片生成bin的软件,会把图片的信息生成出来, 看这里,函数调用的时候就获取到第几张图片的地址 长宽等
> PIC : 2 byte, number of pictures.
> A : 4 byte, start address of the specific picture.
> H : 2 byte, the height of the specific picture.
> W : 2 byte, the width of the specific picture.
> F : 2 byte, the specific picture format. |
|