diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-09-10 03:48:23 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2003-09-10 03:48:23 +0000 |
commit | 525c17277ccccf4459be16018576b44e9e6a2a35 (patch) | |
tree | 8f61bced69808fea15902d45c7fe35f3625c1d9a /HD44780.c | |
parent | ef5ef770de8b4b5d682d24efff30c6cc084d8cc4 (diff) | |
download | lcd4linux-525c17277ccccf4459be16018576b44e9e6a2a35.tar.gz |
[lcd4linux @ 2003-09-10 03:48:22 by reinelt]
Icons for M50530, new processing scheme (Ticks.Text...)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@235 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | HD44780.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: HD44780.c,v 1.38 2003/09/09 11:47:47 reinelt Exp $ +/* $Id: HD44780.c,v 1.39 2003/09/10 03:48:22 reinelt Exp $ * * driver for display modules based on the HD44780 chip * @@ -27,6 +27,9 @@ * * * $Log: HD44780.c,v $ + * Revision 1.39 2003/09/10 03:48:22 reinelt + * Icons for M50530, new processing scheme (Ticks.Text...) + * * Revision 1.38 2003/09/09 11:47:47 reinelt * basic icon support for HD44780 * @@ -499,7 +502,7 @@ int HD_init (LCD *Self) HD_command (0x03, 0x0c, 1640); // Display on, cursor off, blink off, wait 1.64 ms HD_command (0x03, 0x06, 40); // curser moves to right, no shift - if (cfg_number("Icons", 0, 0, 8, &Icons)<0) return -1; + if (cfg_number("Icons", 0, 0, CHARS, &Icons)<0) return -1; if (Icons>0) { info ("reserving %d of %d user-defined characters for icons", Icons, CHARS); icon_init(Lcd.rows, Lcd.cols, XRES, YRES, CHARS, Icons, HD_define_char); |