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.
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] );
}
}
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