diff --git a/ChangeLog b/ChangeLog index c0e78bc..e74689d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ Key: * Something changed / fixed v.0.5dev (ongoing development) + + sed1330 driver: Add support for HG25504 (L. Lagendijk) v0.5.4 * Update driver includes and LDFLAGS (fixed glk and bayrad binding error) diff --git a/docs/lcdproc-user/drivers/sed1330.docbook b/docs/lcdproc-user/drivers/sed1330.docbook index 4ea380c..374d1ec 100644 --- a/docs/lcdproc-user/drivers/sed1330.docbook +++ b/docs/lcdproc-user/drivers/sed1330.docbook @@ -14,11 +14,13 @@ The displays are driven in text mode using their built-in character generator. Connections + Connections below are for the G242C, G121C and G321D displays. Always consult documentation about the specific display before asuming the connections given here are also correct for your display ! + ConnectionType <literal>classic</literal> ordered by LCD pins @@ -586,7 +588,8 @@ use the following circuit. G242C | G191D | G2446 | - SP14Q002 + SP14Q002 | + HG25504 } @@ -628,6 +631,10 @@ use the following circuit. SP14Q002 320 x 240 + + HG25504 + 320 x 240 + diff --git a/server/drivers/sed1330.c b/server/drivers/sed1330.c index b0b6e38..9dc390d 100644 --- a/server/drivers/sed1330.c +++ b/server/drivers/sed1330.c @@ -154,6 +154,30 @@ * * The G242C generates -24V internally. It is available on Vlc. * + * Connections below are for the HG25504 displays. + * Always consult documentation about the specific display before asuming + * the connections given here are also correct for your display ! + * + * Ordered by LCD pins + * LCD pin? <---> pin LPT port + * Frame 1 GND + * Vss 2 GND 18..25 GND + * Vdd 3 +5V + * Vo 3 potmeter + * ^RESET 5 1 ^STROBE + * ^RD 6 +5V + * ^WR 7 16 ^INIT + * ^CS 8 GND + * A0 9 17 ^SELECT_IN + * D0 10 2 D0 + * D1 11 3 D1 + * D2 12 4 D2 + * D3 13 5 D3 + * D4 14 6 D4 + * D5 15 7 D5 + * D6 16 8 D6 + * D7 17 9 D7 + * * To generate -24 from the +5V without an external power source, you can * use the following circuit. * @@ -258,6 +282,7 @@ #define TYPE_G191D 4 #define TYPE_G2446 5 #define TYPE_SP14Q002 6 +#define TYPE_HG25504 7 #define SCR1_L 0x00 // Memory locations #define SCR1_H 0x00 @@ -407,6 +432,10 @@ sed1330_init( Driver * drvthis ) p->type = TYPE_SP14Q002; p->graph_width = 320; p->graph_height = 240; + } else if(strcmp(s, "HG25504") == 0) { + p->type = TYPE_HG25504; + p->graph_width = 256; + p->graph_height = 128; } else { report(RPT_ERR, "%s: Unknown display type %s", drvthis->name, s); return -1; @@ -570,6 +599,9 @@ sed1330_init( Driver * drvthis ) case TYPE_G191D: data[4] = 0x5c; // ? break; + case TYPE_HG25504: + data[4] = 0x7F; // Confirmed + break; default: return -1; }