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 ****************************************************************************/
29 extern void lcd_print_icon(int x
, int icon_line
, bool enable
, char **icon
);
31 static char* icon_battery_bit
[]=
46 static char* icon_battery
[]=
48 "********************* ",
50 "* ----- ----- ----- * ",
51 "* ----- ----- ----- ***",
52 "* ----- ----- ----- * *",
53 "* ----- ----- ----- * *",
54 "* ----- ----- ----- ***",
55 "* ----- ----- ----- * ",
57 "********************* ",
61 static char* icon_volume
[]=
76 static char* icon_volume_1
[]=
91 static char* icon_volume_2
[]=
106 static char* icon_volume_3
[]=
121 static char* icon_volume_4
[]=
136 static char* icon_volume_5
[]=
151 static char* icon_pause
[]=
166 static char* icon_play
[]=
181 static char* icon_record
[]=
196 static char* icon_usb
[]=
202 "***********************",
211 static char* icon_audio
[]=
213 " *************************** ",
215 "* ** * * **** * *** *",
216 "* * * * * * * * * * *",
217 "* * * * * * * * * * *",
218 "* ****** * * * * * * * *",
219 "* * * * * * * * * * *",
220 "* * * *** **** * *** *",
222 " *************************** ",
226 static char* icon_param
[]=
228 " ********************************* ",
230 "* **** ** **** ** ** ** *",
231 "* * * * * * * * * ** ** *",
232 "* * * * * * * * * * * * * *",
233 "* **** ****** **** ****** * * * * *",
234 "* * * * * * * * * * * *",
235 "* * * * * * * * * * * *",
237 " ********************************* ",
241 static char* icon_repeat
[]=
256 static char* icon_repeat2
[]=
279 #define ICON_VOLUME_POS 102
280 #define ICON_VOLUME_SIZE 14
281 #define ICON_VOLUME_X_SIZE 2
283 static struct icon_info icons
[] =
286 {icon_battery
, 0, 0},
287 {icon_battery_bit
, 2, 0},
288 {icon_battery_bit
, 8, 0},
289 {icon_battery_bit
, 14, 0},
292 {icon_record
, 48, 0},
295 {icon_repeat
, 74, 0},
296 {icon_repeat2
, 94, 0},
297 {icon_volume
, ICON_VOLUME_POS
, 0},
298 {icon_volume_1
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
, 0},
299 {icon_volume_2
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(1*ICON_VOLUME_X_SIZE
)+1, 0},
300 {icon_volume_3
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(2*ICON_VOLUME_X_SIZE
)+2, 0},
301 {icon_volume_4
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(3*ICON_VOLUME_X_SIZE
)+3, 0},
302 {icon_volume_5
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(4*ICON_VOLUME_X_SIZE
)+4, 0},
307 lcd_icon(int icon
, bool enable
)
309 lcd_print_icon(icons
[icon
].xpos
, icons
[icon
].row
, enable
,