I'm using as mentioned earlier 18F47K40.
All the data is stored using supplementary code window.
All the data is sent via SPI to FT810 embedded video engine RAM only once.
The image is then displayed on the gLCD by specifying FT810 RAM_G address the imaged is stored.
if you wanted to see what's involved.
0 is used for image data.
Code: Select all
char const unsigned Image1[] ={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,175,165,10,153,74,169,74,173,73,165,42,153,241,177,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,161,138,193,43,234,235,209,138,189,138,185,170,197,11,226,11,222,41,161,51,186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,42,157,43,230,170,193,138,189,11,226,108,250,108,254,76,246,235,217,106,177,235,217,138,185,51,186,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,153,43,234,106,177,75,242,108,254,108,254,108,254,108,254,108,254,108,254,
108,254,138,185,235,217,74,169,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,186,235,213,106,181,
75,246,108,254,108,254,108,254,108,254,108,254,108,254,108,254,108,254,108,254,74,173,43,234,208,173,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,42,153,11,222,235,213,108,254,108,254,108,254,108,254,108,254,108,254,108,254,108,254,108,254,108,254,235,217,235,209,74,165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,138,185,138,185,108,254,108,254,108,254,108,254,108,254,11,226,74,169,235,217,108,254,108,254,108,254,108,254,106,181,138,193,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,202,205,138,185,108,254,108,254,108,254,108,254,75,242,10,149,49,247,107,165,108,250,
108,254,108,254,108,254,138,185,235,209,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,213,138,189,108,254,
108,254,108,254,108,254,138,185,46,198,82,255,204,181,43,234,108,254,108,254,108,254,138,185,235,217,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,203,209,138,189,108,254,108,254,108,254,108,254,75,161,112,210,82,255,172,173,43,234,108,254,108,254,108,254,138,189,235,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,170,193,138,185,108,254,108,254,108,254,108,250,140,165,112,206,111,210,233,136,75,246,108,254,108,254,108,250,138,189,138,189,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,165,203,209,11,226,108,254,108,254,75,238,173,173,150,255,19,235,140,169,108,254,
108,254,108,254,203,209,43,230,75,165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,182,43,230,106,177,
108,254,108,254,43,238,173,173,150,255,150,255,205,181,108,254,108,254,76,246,106,181,235,217,116,194,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,42,161,11,226,106,181,108,250,43,238,173,173,19,235,210,218,205,185,108,254,76,242,106,177,75,238,109,165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,165,43,230,106,177,170,201,173,169,150,255,150,255,238,185,170,197,138,185,75,238,107,169,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,42,157,11,218,235,217,173,169,150,255,150,255,14,186,43,234,
11,222,75,161,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,83,190,76,161,173,169,150,255,150,255,15,190,75,161,50,186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,173,150,255,150,255,47,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,173,150,255,150,255,47,194,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,169,84,247,52,239,80,198,76,153,
14,186,80,198,108,161,18,182,141,161,141,165,208,173,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,140,165,150,255,149,255,145,210,47,194,150,255,150,255,117,251,43,149,150,255,150,255,117,251,206,173,206,173,174,169,18,182,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,161,149,255,149,255,242,226,206,177,149,255,149,255,149,255,47,190,149,255,149,255,149,255,112,206,84,243,149,255,19,231,110,157,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,153,149,255,149,255,117,251,75,153,149,255,149,255,149,255,79,198,117,255,149,255,149,255,19,239,
145,214,149,255,149,255,108,161,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,42,145,149,255,149,255,149,255,108,161,
116,251,149,255,149,255,177,218,210,226,149,255,149,255,117,255,14,190,149,255,117,255,80,198,116,198,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,234,140,149,255,117,255,117,255,47,194,210,226,117,255,117,255,51,239,15,190,117,255,117,255,117,255,108,161,117,255,117,255,19,235,208,169,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,234,136,117,255,117,255,117,255,210,222,80,206,117,255,117,255,116,251,42,149,117,255,117,255,117,255,242,230,116,255,117,255,116,255,109,157,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,149,84,247,116,255,116,255,84,247,14,190,116,255,116,255,84,247,75,157,116,255,116,255,116,255,
116,255,116,255,116,255,116,255,108,161,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,157,19,243,116,255,116,255,116,255,
112,206,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,205,177,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,11,141,242,234,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,14,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,182,201,128,242,234,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,116,255,79,202,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,42,149,107,161,18,239,84,255,84,255,84,255,84,255,84,255,84,255,84,255,84,255,84,255,84,255,84,255,
84,255,84,255,84,255,84,255,144,218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,142,161,209,230,108,165,83,251,83,255,83,255,83,255,
83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,242,238,83,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,140,165,83,255,205,181,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,51,251,241,177,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,205,181,83,255,241,234,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,241,177,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,237,185,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,83,255,
83,255,83,255,83,255,83,255,18,251,51,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,238,185,50,255,50,255,50,255,50,255,50,255,50,255,
50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,209,234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,239,185,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,143,218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,181,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,46,202,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,241,177,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,
50,255,50,255,50,255,50,255,204,181,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,186,176,230,50,255,50,255,50,255,50,255,50,255,
50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,50,255,107,165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,237,189,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,49,255,10,149,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,234,140,240,242,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,233,136,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,157,241,250,17,255,49,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,49,255,17,255,
17,255,17,255,17,255,17,255,234,136,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,190,75,161,240,250,17,255,17,255,
17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,241,250,234,136,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,108,165,240,250,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,17,255,16,255,17,255,10,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,204,185,16,255,16,255,16,255,16,255,16,255,16,255,16,255,16,255,16,255,16,255,16,255,16,255,16,255,107,169,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,186,207,242,16,255,16,255,240,254,240,254,240,254,240,254,240,254,240,254,
240,254,240,254,240,254,240,254,45,206,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,202,
240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,207,246,84,194,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,177,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,15,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,206,177,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,240,254,239,254,239,254,240,254,239,254,237,197,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,207,173,239,254,239,254,239,254,239,254,239,254,239,254,239,254,239,254,
239,254,239,254,239,254,239,254,239,254,77,218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,173,
239,254,239,254,239,254,239,254,239,254,239,254,239,254,239,254,239,254,239,254,239,254,17,255,52,255,22,235,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,173,207,254,207,254,207,254,207,254,239,254,18,255,53,255,119,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
That is for a png image converted to ARGB1555 format.
It does get complicated.