U8glib old siemens C55 Lcd *PCF8812 ? displays mirror image

hello,
great forum and this library great work, lots of info :),

i just connected this screen from old siemens C55 101x64 everything work, size but the image is inverted (mirror) in library only possible to invert image.

is there some inicialization bit to control this?

thanks
using uno 1.0ide

Hi

Is the text output correct or also mirrored?
Is the HelloWorld example working correctly?

Oliver

Hi,
The hello world works, only adjusted 8812.c the correct resolution 101x64 but the text start from the right-to-left direction and yes is mirrored.

Also test 8544 library work the same ..other librarys not u8g.. happens the same.

I cant get info if is possible to mirror image, if i look at the lcd backside is all good;)

Thanks for reply

In line 105 of file u8g_dev_pcf8812_96x65.c you find this:

      if ( u8g_pb_WriteBuffer(pb, u8g, dev) == 0 )
          return 0;

This will output the internal buffer to the display. However, this probably needs to be inverted (you have not provided a picture, so i do not know how this is mirrored). Replace (!) these two linse with this code:

	{
	  uint8_t i = pb->width;
	  while( i > 0 )
	  {
	    i--;
	    u8g_WriteByte(u8g, dev, pb->buf[i] );
	  }
	}

I did not test this, but maybe it will work.

Oliver

hi,
thanks for the help code tricks, but that gives a error compiling, i tried both stable and nightly ide but same, i made some confusion with other libraries refering the position off 'hello world' with this library, the text is only mirrored i think.

the changes i made in 'u8g_dev_pcf8812_96x65.c',
#define WIDTH 101 //change
#define HEIGHT 64 //change
#define PAGE_HEIGHT 8 ?

sketch 'hello world',

void draw(void) {
u8g.setFont(u8g_font_6x10r);
u8g.setFontPosTop(); //without this the font dont appear have to change the next line 'u8g.drawStr(0, xx..
u8g.drawStr(0, 0, "Hello World!");
}

some fonts give a cut in half word with mirror from one another.. i have to try some fonts

thanks any info

C55_front.png

C55_back.png

error 1.05r2.png

error arduino nightly.png

ok, please try this (i fixed the syntax error):

	{
	  uint8_t i = pb->width;
	  while( i > 0 )
	  {
	    i--;
	    u8g_WriteByte(u8g, dev, ((unsigned char *)pb->buf)[i] );
	  }
	}

I have also attache the updated file. Please replace the file in your arduino library and see, whether this will fix your problem.

Oliver

u8g_dev_pcf8812_96x65.c (5.54 KB)

hi ,
looks better only top and bottom are switched but great

ps: i used u8g.setRot180(); in this image

thanks

C55_front2.png

So, this is ok now for you?

Oliver

Hi
Yes this is fine for me now, many thanks

Great support 8)