ILI9341 init commands

Status
Not open for further replies.

Projectitis

Well-known member
Hi all,

These are the initialization commands for the display from the ILI9341 libraries (t3, t3DMA)

Code:
	static const uint8_t init_commands[] = {
		4, 		0xEF, 0x03, 0x80, 0x02,
		4, 		0xCF, 0x00, 0XC1, 0X30,				// Power control B
		5, 		0xED, 0x64, 0x03, 0X12, 0X81,		// Power on sequence control
		4, 		0xE8, 0x85, 0x00, 0x78,				// Driver timing control A
		6, 		0xCB, 0x39, 0x2C, 0x00, 0x34, 0x02, // Power control A
		2, 		0xF7, 0x20,							// Pump ratio control
		3, 		0xEA, 0x00, 0x00,					// Driver timing control B
		2, 		ILI9341_PWCTR1, 0x23, 				// Power control
		2, 		ILI9341_PWCTR2, 0x10, 				// Power control
		3, 		ILI9341_VMCTR1, 0x3e, 0x28, 		// VCM control
		2, 		ILI9341_VMCTR2, 0x86, 				// VCM control2
		2, 		ILI9341_MADCTL, 0x48, 				// Memory Access Control
		2, 		ILI9341_PIXFMT, 0x55,				// 16bit 565 pixel format
		3, 		ILI9341_FRMCTR1, 0x00, 0x18,
		4, 		ILI9341_DFUNCTR, 0x08, 0x82, 0x27,	// Display Function Control
		2, 		0xF2, 0x00, 						// Gamma Function Disable
		2, 		ILI9341_GAMMASET, 0x01, 			// Gamma curve selected
		16,		ILI9341_GMCTRP1, 0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08,
				0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03, 0x0E, 0x09, 0x00, // Set Gamma
		16,		ILI9341_GMCTRN1, 0x00, 0x0E, 0x14, 0x03, 0x11, 0x07,
				0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C, 0x31, 0x36, 0x0F, // Set Gamma
		3, 		0xb1, 0x00, 0x10, 					// FrameRate Control 119Hz
		
		2, 		ILI9341_MADCTL, MADCTL_MV | MADCTL_BGR,
		0
	};

The commands that can be found in the datasheet are all represented by constants, however, as you can see, many of the commands are not in the datasheet and I can't find any info on what the parameters mean. I've been able to track down what some of the commands are (e.g. "Power control B", "Power on sequence control") from this ILI9341 library by postmodern on github, but still no details on the parameters/data.

Does anyone know where I can find more information about these "missing" commands?

Cheers,
Peter
 
Status
Not open for further replies.
Back
Top