summaryrefslogtreecommitdiff
path: root/apps/neo/lcd-charset.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-12 13:31:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-12 13:31:16 +0000
commitc78b30dac867d956a48df96ac4eb73e2372f0fbc (patch)
treed5ee0656798824e83ea767db425589c1ab99164f /apps/neo/lcd-charset.h
parent4009334d332ed7174be0c1556546c3bf8a1d1312 (diff)
New Neo-specific code from the Open Neo project. Unfortunately, the sources
don't say who've written this stuff so I can give credit to any specific person (yet). The sources have been modified by me to conform to Rockbox standards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4135 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/neo/lcd-charset.h')
-rw-r--r--apps/neo/lcd-charset.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/neo/lcd-charset.h b/apps/neo/lcd-charset.h
new file mode 100644
index 0000000000..24e3b223c2
--- /dev/null
+++ b/apps/neo/lcd-charset.h
@@ -0,0 +1,46 @@
+#define CGRAM0 0x00
+#define CGRAM1 0x01
+#define CGRAM2 0x02
+#define CGRAM3 0x03
+#define CGRAM4 0x04
+#define CGRAM5 0x05
+#define CGRAM6 0x06
+#define CGRAM7 0x07
+
+#define CGRAM0_CHAR 0x10
+#define CGRAM1_CHAR 0x11
+#define CGRAM2_CHAR 0x12
+#define CGRAM3_CHAR 0x13
+#define CGRAM4_CHAR 0x14
+#define CGRAM5_CHAR 0x15
+#define CGRAM6_CHAR 0x16
+#define CGRAM7_CHAR 0x17
+
+#define RESERVED_CHAR 0xff
+#define NOCHAR_OLD 0x24
+#define UNKNOWN_CHAR 0x3f
+
+#define LARROW_CHAR 0x1e
+#define RARROW_CHAR 0x1f
+#define FULLGRID_CHAR 0x7f
+
+#define BACKSLASH_LCD CGRAM0
+#define RARROW_LCD 0x7e
+#define LARROW_LCD 0x7f
+#define FULLGRID_LCD 0xff
+
+#define PROGRESS1_LCD CGRAM1
+#define PROGRESS2_LCD CGRAM2
+#define PROGRESS3_LCD CGRAM3
+#define PROGRESS4_LCD CGRAM4
+#define PROGRESS5_LCD FULLGRID_LCD
+
+#define PROGRESS1_CHAR CGRAM1_CHAR
+#define PROGRESS2_CHAR CGRAM2_CHAR
+#define PROGRESS3_CHAR CGRAM3_CHAR
+#define PROGRESS4_CHAR CGRAM4_CHAR
+#define PROGRESS5_CHAR FULLGRID_CHAR
+
+
+extern unsigned char latin1_to_lcd[256];
+