1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 Mats Lidell <matsl@contactor.se>
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifdef HAVE_LCD_CHARCELLS
28 extern void lcd_print_icon(int x
, int icon_line
, bool enable
, char **icon
);
30 static char* icon_battery_bit
[]=
45 static char* icon_battery
[]=
47 "********************* ",
49 "* ----- ----- ----- * ",
50 "* ----- ----- ----- ***",
51 "* ----- ----- ----- * *",
52 "* ----- ----- ----- * *",
53 "* ----- ----- ----- ***",
54 "* ----- ----- ----- * ",
56 "********************* ",
60 static char* icon_volume
[]=
75 static char* icon_volume_1
[]=
90 static char* icon_volume_2
[]=
105 static char* icon_volume_3
[]=
120 static char* icon_volume_4
[]=
135 static char* icon_volume_5
[]=
150 static char* icon_pause
[]=
165 static char* icon_play
[]=
180 static char* icon_record
[]=
195 static char* icon_usb
[]=
201 "***********************",
210 static char* icon_audio
[]=
212 " *************************** ",
214 "* ** * * **** * *** *",
215 "* * * * * * * * * * *",
216 "* * * * * * * * * * *",
217 "* ****** * * * * * * * *",
218 "* * * * * * * * * * *",
219 "* * * *** **** * *** *",
221 " *************************** ",
225 static char* icon_param
[]=
227 " ********************************* ",
229 "* **** ** **** ** ** ** *",
230 "* * * * * * * * * ** ** *",
231 "* * * * * * * * * * * * * *",
232 "* **** ****** **** ****** * * * * *",
233 "* * * * * * * * * * * *",
234 "* * * * * * * * * * * *",
236 " ********************************* ",
240 static char* icon_repeat
[]=
255 static char* icon_repeat2
[]=
278 #define ICON_VOLUME_POS 102
279 #define ICON_VOLUME_SIZE 14
280 #define ICON_VOLUME_X_SIZE 2
282 static struct icon_info icons
[] =
285 {icon_battery
, 0, 0},
286 {icon_battery_bit
, 2, 0},
287 {icon_battery_bit
, 8, 0},
288 {icon_battery_bit
, 14, 0},
291 {icon_record
, 48, 0},
294 {icon_repeat
, 74, 0},
295 {icon_repeat2
, 94, 0},
296 {icon_volume
, ICON_VOLUME_POS
, 0},
297 {icon_volume_1
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
, 0},
298 {icon_volume_2
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(1*ICON_VOLUME_X_SIZE
)+1, 0},
299 {icon_volume_3
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(2*ICON_VOLUME_X_SIZE
)+2, 0},
300 {icon_volume_4
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(3*ICON_VOLUME_X_SIZE
)+3, 0},
301 {icon_volume_5
, ICON_VOLUME_POS
+ICON_VOLUME_SIZE
+(4*ICON_VOLUME_X_SIZE
)+4, 0},
306 lcd_icon(int icon
, bool enable
)
308 lcd_print_icon(icons
[icon
].xpos
, icons
[icon
].row
, enable
,
312 #endif /* HAVE_LCD_CHARCELLS */