summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/display_shared.hch
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer/include/display_shared.hch')
-rw-r--r--Graphic_Equalizer/include/display_shared.hch29
1 files changed, 29 insertions, 0 deletions
diff --git a/Graphic_Equalizer/include/display_shared.hch b/Graphic_Equalizer/include/display_shared.hch
index 3268473..66e8111 100644
--- a/Graphic_Equalizer/include/display_shared.hch
+++ b/Graphic_Equalizer/include/display_shared.hch
@@ -20,6 +20,35 @@
#define _DISPLAY_SHARED_HCH 1
+
+/*
+ * Volume Control lookuptable.
+ * TODO: This table is now hardcoded. To ensure full skinability this table
+ * should be dynamically loaded.
+ */
+rom unsigned 6 volumecontrol_table[46] = {31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 12, 11, 11, 10, 10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, 0};
+
+/*
+ * Equalizer lookuptabe.
+ * TODO: This table is now hardcoded. To ensure full skinability this table
+ * should be dynamically loaded.
+ */
+rom unsigned 4 equalizer_table[66] = {15, 15, 15, 15, 15, 14, 14, 14, 14, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 11, 10, 10, 10, 10, 9, 9, 9, 9, 8, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0};
+
+
+
+/*
+ * Define all area's of the display.
+ */
+#define AREA_WAVEFORM 0x01
+#define AREA_VOLUME_YAXIS 0x02
+#define AREA_SPECTRUM_ANALYZER 0x03
+
+#define BUTTON_HELP 0x12
+
+#define AREA_EQUALIZER_MIN 0x80
+#define AREA_EQUALIZER_MAX 0xff
+
#else
#error "ERROR file display_shared.hch multiple times included"
#endif /* --- _DISPLAY_SHARED_HCH --- */