PicoCalc/Code/MP3Player/icon_nav.h

30 lines
900 B
C

static unsigned int nav_width = 11;
static unsigned int nav_height = 11;
/* Call this macro repeatedly. After each use, the pixel data can be extracted */
#define NAV_PIXEL(data,pixel) {\
pixel[0] = nav_header_data_cmap[(unsigned char)data[0]][0]; \
pixel[1] = nav_header_data_cmap[(unsigned char)data[0]][1]; \
pixel[2] = nav_header_data_cmap[(unsigned char)data[0]][2]; \
data ++; }
static unsigned char nav_header_data_cmap[3][3] = {
{153,153,153},
{255,255,255},
{ 0, 0, 0}
};
static unsigned char nav_header_data[] = {
2,0,0,0,0,0,0,0,0,0,2,
0,2,0,0,0,1,0,0,0,2,0,
0,0,2,0,1,1,1,0,2,0,0,
0,0,0,2,0,0,0,2,0,0,0,
0,0,1,0,2,0,2,0,1,0,0,
0,1,1,0,0,2,0,0,1,1,0,
0,0,1,0,2,0,2,0,1,0,0,
0,0,0,2,0,0,0,2,0,0,0,
0,0,2,0,1,1,1,0,2,0,0,
0,2,0,0,0,1,0,0,0,2,0,
2,0,0,0,0,0,0,0,0,0,2
};