/* Fill a picture in LED matrix from FLASH.  */
void DotMatrixShowPic(unsigned char ucIndex)
/* Fill a picture in LED matrix from FLASH.  */
void DotMatrixShowPic(unsigned char ucIndex)
{
    unsigned char Page_Write,i,j;
    if(g_ucPageIndex == 0)
        Page_Write = 1;
    if(g_ucPageIndex == 1)
        Page_Write = 0;
    for (i = 0; i<8; i++)
    {
        for(j = 0; j < 8; j++)
        {
            dots[Page_Write][i][j][0] = pgm_read_byte(&(pic[ucIndex][i][j][2]));
            dots[Page_Write][i][j][1] = pgm_read_byte(&(pic[ucIndex][i][j][1]));
            dots[Page_Write][i][j][2] = pgm_read_byte(&(pic[ucIndex][i][j][0]));
        }
    }
    g_ucPageIndex = Page_Write;
}