1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 Mats Lidell <matsl@contactor.se>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
23 #ifdef HAVE_LCD_CHARCELLS
30 extern void lcd_print_icon(int x
, int icon_line
, bool enable
, char **icon
);
32 static char* icon_battery_bit
[]=
47 static char* icon_battery
[]=
49 "********************* ",
51 "* ----- ----- ----- * ",
52 "* ----- ----- ----- ***",
53 "* ----- ----- ----- * *",
54 "* ----- ----- ----- * *",
55 "* ----- ----- ----- ***",
56 "* ----- ----- ----- * ",
58 "********************* ",
62 static char* icon_volume
[]=
77 static char* icon_volume_1
[]=
92 static char* icon_volume_2
[]=
107 static char* icon_volume_3
[]=
122 static char* icon_volume_4
[]=
137 static char* icon_volume_5
[]=
152 static char* icon_pause
[]=
167 static char* icon_play
[]=
182 static char* icon_record
[]=
197 static char* icon_usb
[]=
203 "***********************",
212 static char* icon_audio
[]=
214 " *************************** ",
216 "* ** * * **** * *** *",
217 "* * * * * * * * * * *",
218 "* * * * * * * * * * *",
219 "* ****** * * * * * * * *",
220 "* * * * * * * * * * *",
221 "* * * *** **** * *** *",
223 " *************************** ",
227 static char* icon_param
[]=
229 " ********************************* ",
231 "* **** ** **** ** ** ** *",
232 "* * * * * * * * * ** ** *",
233 "* * * * * * * * * * * * * *",
234 "* **** ****** **** ****** * * * * *",
235 "* * * * * * * * * * * *",
236 "* * * * * * * * * * * *",
238 " ********************************* ",
242 static char* icon_repeat
[]=
257 static char* icon_repeat2
[]=
280 #define ICON_VOLUME_POS 102
281 #define ICON_VOLUME_SIZE 14
282 #define ICON_VOLUME_X_SIZE 2
284 static struct icon_info icons
[] =
287 {icon_battery
, 0, 0},
288 {icon_battery_bit
, 2, 0},
289 {icon_battery_bit
, 8, 0},
290 {icon_battery_bit
, 14, 0},
293 {icon_record
, 48, 0},
296 {icon_repeat
, 74, 0},
297 {icon_repeat2
, 94, 0},
298 {icon_volume
, ICON_VOLUME_POS
, 0},
299 {icon_volume_1
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
, 0},
300 {icon_volume_2
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(1*ICON_VOLUME_X_SIZE
)+1, 0},
301 {icon_volume_3
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(2*ICON_VOLUME_X_SIZE
)+2, 0},
302 {icon_volume_4
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(3*ICON_VOLUME_X_SIZE
)+3, 0},
303 {icon_volume_5
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(4*ICON_VOLUME_X_SIZE
)+4, 0},
308 lcd_icon(int icon
, bool enable
)
310 lcd_print_icon(icons
[icon
].xpos
, icons
[icon
].row
, enable
,
314 #endif /* HAVE_LCD_CHARCELLS */