amayilsamy
Advanced Member level 1
- Joined
- Feb 5, 2013
- Messages
- 420
- Helped
- 38
- Reputation
- 76
- Reaction score
- 34
- Trophy points
- 1,308
- Location
- Chennai,India
- Activity points
- 3,370
Just give me the link for the product to buy. Mention the part number.
voltages are measured on the LCD w.r.t groundhave you checked the voltage across capacitor make sure internal booster circuit work with your configuration as already suggested by FvM sir.IF you have 1uf capacitor ( box type) then replace and check them instead of tantalum capacitor.
glcd_command(0x40); // Display start line set
//glcd_command(0xA0); // ADC Normal
//glcd_command(0xC8); // COM REVERSE
glcd_command(0xA1); // ADC REVERSE
glcd_command(0xC0); // COM NORMAL
glcd_command(0xA6); // DISP NORMAL
glcd_command(0xA2); // LCDBIAS 9
glcd_command(0x2F); // Power control
glcd_command(0xF8); // Booster Ratio
glcd_command(0x27); // voltage regulator set
glcd_command(0x81); // SETCONTRAST
glcd_command(0xAC); // Static indicator
glcd_command(0xAF); // Display ON
glcd_command(0xB0); // page 0
glcd_command(0x00); // column
glcd_data(0xFF); // data
glcd_command(0x40); // Display start line set
//glcd_command(0xA0); // ADC Normal
//glcd_command(0xC8); // COM REVERSE
glcd_command(0xA1); // ADC REVERSE
glcd_command(0xC0); // COM NORMAL
glcd_command(0xA6); // DISP NORMAL
glcd_command(0xA2); // LCDBIAS 9
glcd_command(0x2F); // Power control
glcd_command(0xF8); // Booster Ratio
glcd_command(0x00);
glcd_command(0x27); // voltage regulator set
glcd_command(0x81); // SETCONTRAST
glcd_command(0x16); //
glcd_command(0xAC); // Static indicator
glcd_command(0x00); //
glcd_command(0xAF);
void clear_screen()
{
unsigned int16 p = 0, c = 0;
for(p = 0; p < 8; p++)
{
glcd_command(0xB0 | p);
for(c = 0; c < 129; c++)
{
glcd_command(0x10 | (c & 0xf));
glcd_command(0x00 | ((c >> 4) & 0xf));
glcd_data(0x00);
}
}
}
for(c = 0; c < 129; c++)
{
glcd_command(0x10 | (c & 0xf));
glcd_command(0x00 | ((c >> 4) & 0xf));
glcd_data(0x00);
}
glcd_command(0xB0);
glcd_command(0x10 | (0 & 0xf));
glcd_command(0x00 | ((0 >> 4) & 0xf));
for(i = 0; i < 8; i++)
{
glcd_data(data1[i]); // to display a character
}
i = 0;
glcd_command(0xB0);
glcd_command(0x10 | (1 & 0xf));
glcd_command(0x00 | ((0 >> 4) & 0xf));
for(i = 0; i < 8; i++)
{
glcd_data(data2[i]); // to display another character
}
glcd_command(0xB0);
glcd_command(0x10 | (0 & 0xf));
glcd_command(0x00 | ((0 >> 4) & 0xf));
for(i = 0; i < 8; i++)
{
glcd_data(data1[i]); // to display a character
}
i = 0;
glcd_command(0xC0);
glcd_command(0x10 | (1 & 0xf));
glcd_command(0x00 | ((0 >> 4) & 0xf));
for(i = 0; i < 8; i++)
{
glcd_data(data2[i]); // to display another character
}
float xf;
long xl;
xl = 10000*xf;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?