Ericsson A1018s lcd i2c

Hi,

I would like to re-use display from old MT Ericsson A1018s.. It has nice small graphic LCD of 101x40 px and it is probably driven by PCF 8558.

So I made new sketch, and tried to convert asm code from pages module.ro..

First issue was different i2c address. My display is on 0x38, not 0x70 defined on every page regarding to PCF8558.

Another issue was a control byte - mine is totally different (found by brute force :slight_smile: )..

However I have some results. Display is working but has top and bottom lines doubled as you can see on attached photo.

What I found:

  1. control byte of B00010001 defines contrast (probably) in second part, and line number in the first part
  • B00010001 - select first line (and third - doubled)
  • B00110001 - select second line (and fourth - doubled)
  • B10010001 - select one line of pixels in the middle of display (horizontaly)
  1. B00000001 - means lower contrast, B00001001 - higher contrast, B00000101 - totally black lcd..
  • this should be inaccurate, I am using higher usable contrast with readable dots so other options are not important for me, but the principle is somehow that

So can somebody help me with annoying mirroring something ?

My opinion is, that display is driven by some other chip, or with two doubled chips with something like i2c port expander on address 0x38.. But I don't know :frowning:

code

#include <Wire.h>
#define addr 0x38

 

void setup()
{
  Wire.begin();
  Serial.begin(9600);
  clean();
}  
void clean(){  
  byte x;
for(x = 0; x < 101;x++ )
  {    
    //delete center line
    Wire.beginTransmission(addr);
    Wire.write(B10010001);
    Wire.write(x);
    Wire.write(0x00);
    Wire.endTransmission();
    //delete upper rows
    Wire.beginTransmission(addr);
    Wire.write(B00010001);
    Wire.write(x);
    Wire.write(0x00);
    Wire.endTransmission();
    //delete lower rows
    Wire.beginTransmission(addr);
    Wire.write(B00110001);
    Wire.write(x);
    Wire.write(0x00);
    Wire.endTransmission();
    }
}

void LCD(int line,int x)
{ 
 Wire.beginTransmission(addr);
 Wire.write((line<< 5)+B00010001);

 Wire.write(x);//x offset
 
 Wire.write(0x1f); //P
 Wire.write(0x05); 
 Wire.write(0x07); 
 Wire.write(0x00);
 Wire.write(0x1f); //H
 Wire.write(0x04); 
 Wire.write(0x1f); 
 Wire.write(0x00);
 Wire.write(0x1f); //I
 Wire.write(0x00); 
 Wire.write(0x1f); //L
 Wire.write(0x10); 
 Wire.write(0x10); 
 Wire.write(0x00); 
 Wire.write(0x1f); //I
 Wire.write(0x00);
 Wire.write(0x1f); //P
 Wire.write(0x05);
 Wire.write(0x07);
 Wire.write(0x00);
 Wire.write(0x12); //S
 Wire.write(0x15); 
 Wire.write(0x09);
 Wire.write(0x00);
 Wire.endTransmission();
}

 
void loop()
{
 int line,x;
 line=1;
 x=27;
 clean();
 LCD(line,x);
 delay(10000);
}

no suggestions?

There are many COG controllers. They tend to have a similar format for commands and data over the I2C bus.

However the hardware configuration of internal voltage generators, contrast etc may vary from different manufacturers.

If you are fortunate enough to have a display that runs straight out of the box, all you need to do is setCursor(x, y) and write the appropriate data.

You have managed "PHILIPS" by yourself.

David.

Thank you for you reply.. I think that I did not described my problem correctly.. I cannot find relevant commands for that display. Any information about display from this mobile phone pointed me to the slightly different datasheet and lcd chip than I probably have. So I want to know if there any chance to find correct commands for this display - how can I identify driver chip (I know that is some PCF but don't know which one :frowning: ). Or if there is someone who knows these drivers and can tell me something like : yes, just send there 0x... then display will not be mirrored.. or something like that :slight_smile:

Looks like you used wrong control byte value. I did some researches on my Ericsson T28 LCD and here is a simple code, fps is really slow, but with a different i2c lib allowing fast mode it shows 50fps :

T28LCD.ino (4.94 KB)