summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/icons.c14
-rw-r--r--apps/recorder/icons.h9
2 files changed, 23 insertions, 0 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c
index 4e8601d77a..222024cc70 100644
--- a/apps/recorder/icons.c
+++ b/apps/recorder/icons.c
@@ -72,6 +72,9 @@ const unsigned char bitmap_icons_7x8[][7] =
{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 */
+#ifndef HAVE_LED
+ {0x1c,0x22,0x41,0x49,0x41,0x22,0x1c}, /* Disk/MMC activity */
+#endif
};
#if LCD_WIDTH == 112 || LCD_WIDTH == 128
@@ -399,6 +402,17 @@ void statusbar_icon_lock(void)
STATUSBAR_Y_POS, 5, 8, false);
}
+#ifndef HAVE_LED
+/*
+ * no real LED: disk activity in status bar
+ */
+void statusbar_led(void)
+{
+ lcd_bitmap(bitmap_icons_7x8[Icon_Disk], ICON_DISK_X_POS,
+ STATUSBAR_Y_POS, ICON_DISK_WIDTH, STATUSBAR_HEIGHT, false);
+}
+#endif
+
#ifdef HAVE_RTC
/*
* Print time to status bar
diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h
index 813d33f4fd..394fa14b57 100644
--- a/apps/recorder/icons.h
+++ b/apps/recorder/icons.h
@@ -57,6 +57,9 @@ enum icons_7x8 {
Icon_Shuffle,
Icon_DownArrow,
Icon_UpArrow,
+#ifndef HAVE_LED
+ Icon_Disk,
+#endif
Icon_Last
};
@@ -89,6 +92,8 @@ extern const unsigned char rockbox160x53[];
#define ICON_SHUFFLE_WIDTH 7
#define LOCK_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+ICON_PLAY_STATE_WIDTH+ICON_PLAY_MODE_WIDTH+ICON_SHUFFLE_WIDTH+2+2+2+2+2+2
#define LOCK_WIDTH 5
+#define ICON_DISK_WIDTH 7
+#define ICON_DISK_X_POS STATUSBAR_WIDTH-ICON_DISK_WIDTH
#define TIME_X_END STATUSBAR_WIDTH-1
extern void statusbar_wipe(void);
@@ -101,6 +106,10 @@ extern void statusbar_icon_lock(void);
#ifdef HAVE_RTC
extern void statusbar_time(int hour, int minute);
#endif
+#ifndef HAVE_LED
+extern void statusbar_led(void);
+#endif
+
#endif /* End HAVE_LCD_BITMAP */
#endif /* _ICONS_H_ */