LCDproc development and user support list

Text archives Help


[Lcdproc] [patch] hd44780-winamp.c stop backlight flicker


Chronological Thread 
  • From: leo AT wau.mis.ah.nl (Leo Weppelman)
  • Subject: [Lcdproc] [patch] hd44780-winamp.c stop backlight flicker
  • Date: Sun Jul 25 19:21:01 2004

Hello,

I have an hd44780 compatible display with a switched backlight connected
to the nSEL pin (8-bit winamp wiring). The attached patch make sure that
the nSEL line is no longer used as 'EN2' line. This stops a very annoying
flickering of the backlight. Otherwise the backlight will be turned off for
a short time while a character is written to the display.

The patch is against the lcdproc-0.4.5 release sources.

Leo.

--- server/drivers/hd44780-winamp.c.org Sat Jul 24 22:36:56 2004
+++ server/drivers/hd44780-winamp.c Sat Jul 24 22:40:41 2004
@@ -131,7 +131,9 @@
portControl |= backlight_bit;

if (displayID == 0)
- enableLines = EnMask[0] | EnMask[1] | ((extIF) ? EnMask[2] :
0);
+ enableLines = EnMask[0]
+ | ((have_backlight) ? 0 : EnMask[1])
+ | ((extIF) ? EnMask[2] : 0);
else
enableLines = EnMask[displayID - 1];



  • [Lcdproc] [patch] hd44780-winamp.c stop backlight flicker, Leo Weppelman, 07/25/2004

Archive powered by MHonArc 2.6.18.

Top of page