aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drv_Crystalfontz.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/drv_Crystalfontz.c b/drv_Crystalfontz.c
index e97238e..e179a15 100644
--- a/drv_Crystalfontz.c
+++ b/drv_Crystalfontz.c
@@ -1,4 +1,4 @@
-/* $Id: drv_Crystalfontz.c,v 1.38 2006/01/30 06:25:49 reinelt Exp $
+/* $Id: drv_Crystalfontz.c,v 1.39 2006/02/19 15:37:38 reinelt Exp $
*
* new style driver for Crystalfontz display modules
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_Crystalfontz.c,v $
+ * Revision 1.39 2006/02/19 15:37:38 reinelt
+ * CF635 GPO patch from cmaj
+ *
* Revision 1.38 2006/01/30 06:25:49 reinelt
* added CVS Revision
*
@@ -252,7 +255,7 @@ static MODEL Models[] = {
{632, "632", 2, 16, 0, 0, 1, 0},
{633, "633", 2, 16, 4, 4, 2, 18},
{634, "634", 4, 20, 0, 0, 1, 0},
- {635, "635", 4, 20, 0, 0, 3, 22},
+ {635, "635", 4, 20, 4, 12, 3, 22},
{636, "636", 2, 16, 0, 0, 1, 0},
{-1, "Unknown", -1, -1, 0, 0, 0, 0}
};
@@ -674,7 +677,8 @@ static int drv_CF_GPI(const int num)
static int drv_CF_GPO(const int num, const int val)
{
- static unsigned char PWM[4] = { 0, };
+ static unsigned char PWM2[4] = { 0, 0, 0, 0};
+ static unsigned char PWM3[2];
int v = val;
@@ -683,11 +687,15 @@ static int drv_CF_GPO(const int num, const int val)
if (v > 100)
v = 100;
- PWM[num] = v;
-
switch (Protocol) {
case 2:
- drv_CF_send(17, 4, PWM);
+ PWM2[num] = v;
+ drv_CF_send(17, 4, PWM2);
+ break;
+ case 3:
+ PWM3[0] = num + 1;
+ PWM3[1] = v;
+ drv_CF_send(34, 2, PWM3);
break;
}
@@ -1044,7 +1052,7 @@ int drv_CF_init(const char *section, const int quiet)
WIDGET_CLASS wc;
int ret;
- info("%s: %s", Name, "$Revision: 1.38 $");
+ info("%s: %s", Name, "$Revision: 1.39 $");
/* start display */
if ((ret = drv_CF_start(section)) != 0) {
t f2053b3)Jonathan McCrohan1-0/+6 2015-04-01Imported Upstream version 0+git20150208.f2053b3upstream/0+git20150208.f2053b3Jonathan McCrohan32-333/+483 2014-12-28Release 0+git20141218.b46a22c-1debian/0+git20141218.b46a22c-1Jonathan McCrohan1-2/+2 2014-12-28Updated AU DVB-T files; Thanks Brian Burch! (Closes LP: #1393280)Jonathan McCrohan1-0/+1 2014-12-28New Upstream Snapshot (commit b46a22c)Jonathan McCrohan1-0/+6 2014-12-28Imported Upstream version 0+git20141218.b46a22cupstream/0+git20141218.b46a22cJonathan McCrohan535-639/+317 2014-10-20Release 0+git20141009.d26b627-1debian/0+git20141009.d26b627-1Jonathan McCrohan1-2/+2 2014-10-20Fix up packaging to account for move to DVBv5Jonathan McCrohan2-2/+6 2014-10-20delete d/dtv-scan-files.install; Upstream now supplies a MakefileJonathan McCrohan2-4/+1 2014-10-15d/control: update Standards Version to 3.9.6Jonathan McCrohan2-1/+3 2014-10-15d/control: add Build-Depends on dvb-toolsJonathan McCrohan2-1/+2 2014-10-15New Upstream Snapshot (commit d26b627)Jonathan McCrohan1-0/+10 2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271 2014-07-23Release 0+git20140611.14bd6c7-1debian/0+git20140611.14bd6c7-1Jonathan McCrohan1-2/+2 2014-07-23New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9