2002-05-17 12:22:24 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Robert E. Hak
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2002-08-12 07:14:46 +00:00
|
|
|
#include <string.h>
|
2002-09-12 13:33:59 +00:00
|
|
|
#include "lcd.h"
|
|
|
|
#include "font.h"
|
2002-08-09 11:57:31 +00:00
|
|
|
#include "kernel.h"
|
2002-08-10 07:45:35 +00:00
|
|
|
#include "sprintf.h"
|
2002-08-12 07:14:46 +00:00
|
|
|
#include "rtc.h"
|
2002-12-18 18:47:11 +00:00
|
|
|
#include "powermgmt.h"
|
2002-05-17 12:22:24 +00:00
|
|
|
|
2002-10-14 12:50:20 +00:00
|
|
|
#include "settings.h"
|
|
|
|
|
2002-05-17 12:22:24 +00:00
|
|
|
#include "icons.h"
|
|
|
|
|
2004-07-19 21:46:37 +00:00
|
|
|
const unsigned char bitmap_icons_5x8[][5] =
|
2002-08-07 10:35:26 +00:00
|
|
|
{
|
2005-11-22 21:55:05 +00:00
|
|
|
[Icon_Lock_Main] ={0x78,0x7f,0x49,0x7f,0x78}, /* Lock Main */
|
|
|
|
[Icon_Lock_Remote]={0x78,0x7f,0x49,0x7f,0x78} /* Lock Remote */
|
2002-08-07 10:35:26 +00:00
|
|
|
};
|
|
|
|
|
2005-11-22 21:55:05 +00:00
|
|
|
const unsigned char bitmap_icons_6x8[][6] =
|
2002-05-17 12:22:24 +00:00
|
|
|
{
|
2003-12-22 09:48:18 +00:00
|
|
|
{ 0x60, 0x7f, 0x03, 0x33, 0x3f, 0x00 }, /* Musical note */
|
2002-10-08 10:10:16 +00:00
|
|
|
{ 0x7e, 0x41, 0x41, 0x42, 0x7e, 0x00 }, /* Folder */
|
|
|
|
{ 0x55, 0x00, 0x55, 0x55, 0x55, 0x55 }, /* Playlist */
|
2005-09-01 08:04:37 +00:00
|
|
|
{ 0x3e, 0x1c, 0x08, 0x00, 0x00, 0x00 }, /* Cursor / Marker */
|
2002-10-08 10:10:16 +00:00
|
|
|
{ 0x58, 0x5f, 0x42, 0x50, 0x55, 0x55 }, /* WPS file */
|
|
|
|
{ 0x63, 0x7f, 0x3a, 0x7f, 0x63, 0x00 }, /* Mod or ajz file */
|
|
|
|
{ 0x60, 0x70, 0x38, 0x2c, 0x7e, 0x7e }, /* Font file */
|
|
|
|
{ 0x3e, 0x2a, 0x3e, 0x2a, 0x2a, 0x3e }, /* Language file */
|
|
|
|
{ 0x4e, 0x51, 0x51, 0x40, 0x55, 0x55 }, /* Config file */
|
2003-06-29 16:33:04 +00:00
|
|
|
{ 0x0a, 0x0a, 0x5f, 0x4e, 0x24, 0x18 }, /* Plugin file */
|
2004-01-14 00:13:04 +00:00
|
|
|
{ 0xff, 0x81, 0xaf, 0xaa, 0x8c, 0xf8 }, /* Bookmark file */
|
2006-04-02 12:23:08 +00:00
|
|
|
{ 0x5f, 0x45, 0x5b, 0x40, 0x55, 0x55 }, /* Preset file */
|
2005-11-16 02:12:25 +00:00
|
|
|
{ 0x77, 0x55, 0x55, 0x55, 0x55, 0x77 }, /* Queued Item */
|
|
|
|
{ 0x3e, 0x41, 0x3e, 0x1c, 0x1c, 0x08 }, /* Moving Item */
|
2006-03-29 16:21:42 +00:00
|
|
|
{ 0x7f, 0x7f, 0x1c, 0x3e, 0x77, 0x63 }, /* Keyboard file */
|
2002-05-17 12:22:24 +00:00
|
|
|
};
|
|
|
|
|
2004-07-19 21:46:37 +00:00
|
|
|
const unsigned char bitmap_icons_7x8[][7] =
|
2002-08-07 10:35:26 +00:00
|
|
|
{
|
2002-10-08 10:10:16 +00:00
|
|
|
{0x08,0x1c,0x3e,0x3e,0x3e,0x14,0x14}, /* Power plug */
|
2005-06-23 02:18:29 +00:00
|
|
|
{0x1c,0x14,0x3e,0x2a,0x22,0x1c,0x08}, /* USB plug */
|
2002-10-08 10:10:16 +00:00
|
|
|
{0x01,0x1e,0x1c,0x3e,0x7f,0x20,0x40}, /* Speaker mute */
|
|
|
|
{0x00,0x7f,0x7f,0x3e,0x1c,0x08,0x00}, /* Play */
|
|
|
|
{0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f}, /* Stop */
|
|
|
|
{0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00}, /* Pause */
|
|
|
|
{0x7f,0x3e,0x1c,0x7f,0x3e,0x1c,0x08}, /* Fast forward */
|
|
|
|
{0x08,0x1c,0x3e,0x7f,0x1c,0x3e,0x7f}, /* Fast backward */
|
|
|
|
{0x1c,0x3e,0x7f,0x7f,0x7f,0x3e,0x1c}, /* Record */
|
|
|
|
{0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */
|
2005-11-19 20:45:32 +00:00
|
|
|
{0x40,0xa0,0xa0,0xa0,0x7f,0x02,0x02}, /* Radio on */
|
|
|
|
{0x42,0xa4,0xa8,0xb0,0x7f,0x22,0x42}, /* Radio mute */
|
2002-10-29 13:59:51 +00:00
|
|
|
{0x44,0x4e,0x5f,0x44,0x44,0x44,0x38}, /* Repeat playmode */
|
|
|
|
{0x44,0x4e,0x5f,0x44,0x38,0x02,0x7f}, /* Repeat-one playmode */
|
2002-10-08 10:10:16 +00:00
|
|
|
{0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */
|
|
|
|
{0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */
|
|
|
|
{0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */
|
2005-11-19 20:45:32 +00:00
|
|
|
{0x7f,0x04,0x4e,0x5f,0x44,0x38,0x7f} /* Repeat-AB playmode */
|
2005-03-01 22:55:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Disk/MMC activity */
|
2005-11-24 00:10:14 +00:00
|
|
|
const unsigned char bitmap_icon_disk[12] =
|
|
|
|
#ifdef HAVE_MMC
|
2005-03-01 22:55:52 +00:00
|
|
|
{0x15,0x3f,0x7d,0x7B,0x77,0x67,0x79,0x7b,0x57,0x4f,0x47,0x7f};
|
2005-11-24 00:10:14 +00:00
|
|
|
#else
|
|
|
|
{0x00,0x00,0x00,0x1c,0x22,0x41,0x49,0x41,0x22,0x1c,0x00,0x00};
|
|
|
|
#endif
|
2002-08-07 10:35:26 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Print play mode to status bar
|
|
|
|
*/
|
|
|
|
void statusbar_icon_play_mode(int mode)
|
|
|
|
{
|
2005-08-24 00:09:42 +00:00
|
|
|
lcd_mono_bitmap(bitmap_icons_7x8[mode], ICON_PLAY_MODE_X_POS,
|
|
|
|
STATUSBAR_Y_POS, ICON_PLAY_MODE_WIDTH, STATUSBAR_HEIGHT);
|
2002-08-07 10:35:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Print shuffle mode to status bar
|
|
|
|
*/
|
|
|
|
void statusbar_icon_shuffle(void)
|
|
|
|
{
|
2005-11-20 01:02:14 +00:00
|
|
|
lcd_mono_bitmap(bitmap_icons_7x8[Icon_Shuffle], ICON_SHUFFLE_X_POS,
|
2005-07-06 22:58:02 +00:00
|
|
|
STATUSBAR_Y_POS, ICON_SHUFFLE_WIDTH, STATUSBAR_HEIGHT);
|
2002-08-07 10:35:26 +00:00
|
|
|
}
|