add mp3 player code
This commit is contained in:
29
Code/MP3Player/icon_nav.h
Normal file
29
Code/MP3Player/icon_nav.h
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user