add mp3 player code
This commit is contained in:
45
Code/MP3Player/icon_esc.h
Normal file
45
Code/MP3Player/icon_esc.h
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
static unsigned int esc_width = 23;
|
||||
static unsigned int esc_height = 13;
|
||||
|
||||
/* Call this macro repeatedly. After each use, the pixel data can be extracted */
|
||||
|
||||
#define ESC_PIXEL(data,pixel) {\
|
||||
pixel[0] = esc_header_data_cmap[(unsigned char)data[0]][0]; \
|
||||
pixel[1] = esc_header_data_cmap[(unsigned char)data[0]][1]; \
|
||||
pixel[2] = esc_header_data_cmap[(unsigned char)data[0]][2]; \
|
||||
data ++; }
|
||||
|
||||
static unsigned char esc_header_data_cmap[3][3] = {
|
||||
{153,153,153},
|
||||
{255,255,255},
|
||||
{ 0, 0, 0}
|
||||
};
|
||||
static unsigned char esc_header_data[] = {
|
||||
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
|
||||
2,2,2,2,2,2,2,
|
||||
2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,2,2,
|
||||
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,2,
|
||||
2,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,2,
|
||||
2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,2,
|
||||
2,0,0,1,0,0,0,0,0,0,0,1,1,1,1,0,
|
||||
0,1,1,1,0,0,2,
|
||||
2,0,0,1,1,1,1,1,0,0,1,0,0,0,0,0,
|
||||
1,0,0,0,0,0,2,
|
||||
2,0,0,1,0,0,0,0,0,0,0,1,1,1,1,0,
|
||||
1,0,0,0,0,0,2,
|
||||
2,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,
|
||||
1,0,0,0,0,0,2,
|
||||
2,0,0,1,1,1,1,1,0,0,1,1,1,1,0,0,
|
||||
0,1,1,1,0,0,2,
|
||||
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,2,
|
||||
2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,2,2,
|
||||
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
|
||||
2,2,2,2,2,2,2
|
||||
};
|
||||
Reference in New Issue
Block a user