Hello.
In the init function it is " command(0x0C); //fund. com. set: display ON:0C".
Later I send command(0x0E) for turning the cursor on. That works fine.
Moving the Cursor with command(0x14) works also fine.
When I call the function send_output(); the text is visible but the cursor disapeared.
void send_output(void)
{
uint i=0;
//command(0x01); //clear display
command(0x02); //return home
for(i=0;i<20;i++)
{
data(Line1[i]); //write Line1
}
command(0xC0); //line 2
for(i=0;i<20;i++)
{
data(Line2[i]); //write Line2
}
}
This is the hole init function:
E_LOW; //RES_HIGH; //RES = 1; //reset HIGH – inactive
wait(LCD_WAIT);//delayms(1); //delay
command(0x2A); //fundamental command set: function set: RE ON
command(0x71); //extended command set: function selection A
data(0x00); // disable internal VDD regulator (2.8V I/O). data(0x5C) = enable regulator (5V I/O)
command(0x28); //fundamental command set: function set:RE OFF
command(0x08); //fund. com. set: display: display off, cursor off, blink off
command(0x2A); //fundamental command set: function set: RE ON
command(0x79); //extended com. set: OLED: "OLED command set" enabled (S.10)
command(0xD5); //OLED command set: set display clock divide ratio/oscillator frequency
command(0x70); //value: set display clock divide ratio/oscillator frequency
command(0x78); //extended com. set: OLED: "OLED command set" disabled
command(0x08); //(RE ON)fund.com. set: extended function set: 5-dot,no inverting of corsor,2-lines)
command(0x06); //(RE ON)fund.com. set: COM SEG direction
command(0x72); //ext. com.set: function selection B
data(0x00); //selectROM A, CGRAM
command(0x2A); //fundamental command set: function set: RE ON
command(0x79); //extended com. set: OLED: "OLED command set" enabled (S.10)
command(0xDA); //OLED command set: set SEG pins hardware configuration
command(0x10); //set SEG pins hardware configuration
command(0xDC); //OLED command set: function selection C
command(0x00); //function selection C: internal VSL + GPIO input disabled
command(0x81); //OLED command set: set contrast control
command(0xf0); //set contrast control: 0xf0
command(0xD9); //OLED command set:set phase length
command(0xF1); //set phase length: 0xf1
command(0xDB); //OLED command set: set VCOMH deselect level
command(0x40); //set VCOMH deselect level
command(0x78); //extended com. set: OLED: "OLED command set" disabled
command(0x28); //fundamental command set: function set:RE OFF
command(0x06); //fundamental command set: cursor/blink moves right //BPIE
command(0x01); //fund. com. set: clear display
command(0x80); //fund. com. set: set DDRAM address to 0x00
command(0x0C); //fund. com. set: display ON:0C
wait(LCD_WAIT);//delayms(100); //delay