ili9327 chipset and LCD_Write commands

Would someone help me with a backlight issue, please?

I am using an MCUFRIEND 3.5" TFT LCD screen, and the silkscreen on the back says 'ili9488' but it only responds to the ili9327 chipset commands.

Anyway, I can't get the backlight to turn off.

Using the ili9327 datasheet I have tried tinkering with the library to get the backlight to respond to no avail.

As soon as I can figure out a way to attach the ili9327 datasheet and library files, I will.

But it is from ILITEK, if that helps.

I started by looking at the command section of the datasheet, where a few backlight-related commands are listed, but that is where I am stuck.

My problem is not being able to figure out the LCD_Write commands.

Here is what I currently have in the library file ( .cpp ),

1
2
3
4
5
6
7
8
9
10
11
void UTFT::backlightControl1()		/* Attempt to add backlight control to library */
{
	cbi(P_CS, B_CS);
	switch (display_model)
	{
	case PCF8833:
		LCD_Write_COM_DATA(0xB8, 0x000F);	/* 3rd Attempt to turn off backlight */	
		break;
	}
	sbi(P_CS, B_CS);
}


I understand that they require an address, which I get from the datasheet. For the first backlight command, Backlight Control 1, it is B8h.

I just can't figure out how to send a value to that address. And I have tried other commands that ( I think ) accept or expect a 2nd value, still to no avail.

Thanks!
Last edited on
Topic archived. No new replies allowed.