LCDproc development and user support list

Text archives Help


[lcdproc] Flicker problem with LCDd


Chronological Thread 
  • From: james AT vantslot.net (James Van't Slot)
  • Subject: [lcdproc] Flicker problem with LCDd
  • Date: Mon, 05 Feb 2001 17:56:42 -0800

This message goes aways back,
I've tried getting lcdproc v 0.4-pre9 to work properly but I still get
the same flicker problem. I gave up for a few months and now I'm back
at it.
I applied the changes suggested below which improved thing a little bit
but I still get a terrible flicker which renders the screen useless.
Any suggestions?
Maybe this question has already been answered. Could anyone point to a
solution?
I haven't seen any new versions added to the website so I'm assuming
0.4-pre9 is the latest.

Thanks for the help in advance
james

tinic AT tinic.net
wrote:

> Cause is a problem with the framebuffer usage. Big Numbers and
> the framebuffer do not mix. What happens is that the LCD displays
> the big numbers and right afterwards the current framebuffer is
> drawn. Since its empty, it erases the LCD.
>
> Solution is simple: Implement big numbers using the framebuffer.
> I attached the two modified functions which need to be replaced
> in server/drivers/MtxOrb.c. The numbers look a bit different,
> personally I prefer them.
>
>
> greets
>
> TINIC
>
>
> ------------------------------------------------------------------------
>
> /////////////////////////////////////////////////////////////////
> // Sets up for big numbers.
> //
> void MtxOrb_init_num()
> {
> int c;
> char elem[8][5*8] = {
> {
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> },
>
> {
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> },
>
> {
> 0,0,0,0,0,
> 0,0,0,0,1,
> 0,0,0,1,1,
> 0,0,1,1,1,
> 0,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> },
>
> {
> 0,0,0,0,0,
> 1,0,0,0,0,
> 1,1,0,0,0,
> 1,1,1,0,0,
> 1,1,1,1,0,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> },
>
> {
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 0,1,1,1,1,
> 0,0,1,1,1,
> 0,0,0,1,1,
> 0,0,0,0,1,
> 0,0,0,0,0,
> },
>
> {
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,0,
> 1,1,1,0,0,
> 1,1,0,0,0,
> 1,0,0,0,0,
> 0,0,0,0,0,
> },
>
> {
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> },
>
> {
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 1,1,1,1,1,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> 0,0,0,0,0,
> },
> };
>
> for(c=0;c<8;c++)
> {
> MtxOrb_set_char(c,elem[c]);
> }
> }
>
> /////////////////////////////////////////////////////////////////
> // Writes a big number.
> //
> void MtxOrb_num(int x, int num)
> {
> int y=1;
> int xx,yy;
> char digits [10][3*4] =
> {
> {
> 2,1,3,
> 1,0,1,
> 1,0,1,
> 4,1,5,
> },
>
> {
> 2,1,0,
> 0,1,0,
> 0,1,0,
> 0,1,0,
> },
>
> {
> 2,1,3,
> 0,2,5,
> 2,5,0,
> 1,1,1,
> },
>
> {
> 2,1,3,
> 0,6,5,
> 0,7,3,
> 4,1,5,
> },
>
> {
> 1,0,1,
> 1,6,1,
> 7,7,1,
> 0,0,1,
> },
> {
> 1,1,1,
> 1,6,0,
> 7,7,1,
> 4,1,5,
> },
> {
> 2,1,1,
> 1,6,0,
> 1,7,1,
> 4,1,5,
> },
> {
> 1,1,1,
> 0,2,5,
> 0,1,0,
> 0,1,0,
> },
> {
> 2,1,3,
> 4,6,5,
> 2,7,3,
> 4,1,5,
> },
> {
> 2,1,3,
> 1,6,1,
> 0,7,1,
> 4,1,5,
> },
> };
>
> y--;
> x--;
>
> for(yy=0;yy<4;yy++)
> {
> for(xx=0;xx<3;xx++)
> {
> if((y+yy)<lcd.hgt && (x+xx)<lcd.wid) {
> lcd.framebuf[((y+yy)*lcd.wid) + (x+xx)] =
> digits[num][yy*3+xx];
> }
> }
> }
> }
>
>
> ------------------------------------------------------------------------
>
>
> -----------------------------------------------------------
> To unsubscribe from this list send a blank message to
> lcdproc-unsubscribe AT lists.omnipotent.net
> fix
>
> Content-Type:
>
> text/plain
>
>
> ------------------------------------------------------------------------
> attachment.txt
>
> Content-Type:
>
> text/plain
>
>



-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe AT lists.omnipotent.net



  • [lcdproc] Flicker problem with LCDd, James Van't Slot, 02/06/2001

Archive powered by MHonArc 2.6.18.

Top of page