Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FT800_3 by
Diff: FT_Hal_Utils.cpp
- Revision:
- 8:4601ccd8a927
- Parent:
- 6:16e22c789f7d
--- a/FT_Hal_Utils.cpp Wed Feb 24 14:04:34 2016 +0000 +++ b/FT_Hal_Utils.cpp Fri Apr 01 18:31:11 2016 +0000 @@ -5,7 +5,7 @@ /* return 0 if jpg is ok */ /* return x_size and y_size of jpg */ -int FT800::Load_jpg(char* filename, ft_int16_t* x_size, ft_int16_t* y_size) +int FT800::Load_jpg(char* filename, ft_int16_t* x_size, ft_int16_t* y_size, ft_uint32_t address) { unsigned char pbuff[8291]; unsigned short marker; @@ -42,7 +42,7 @@ fseek(fp, 0, SEEK_SET); WrCmd32(CMD_LOADIMAGE); // load a JPEG image - WrCmd32(0); //destination address of jpg decode + WrCmd32(address); //destination address of jpg decode WrCmd32(0); //output format of the bitmap - default is rgb565 while(Fsize > 0) { /* download the data into the command buffer by 8kb one shot */