/* ILI9341寄存器地址 */
#define SWRESET 0x01 //Software Reset
#define RDDIDIF 0x04 //Read Display Identification Information
#define RDDST 0x09 //Read Display Status
#define RDDPM 0x0A //Read Display Power Mode
#define RDDMADCTL 0x0B //Read Display MADCTL
#define RDDCOLMOD 0x0C //Read Display Pixel Format
这是寄存器地址是看手册写的吗?
/* Power control B (CFh) 电力控制 */
DEBUG_DELAY();
LCD_ILI9341_CMD(0xCF);
LCD_ILI9341_Parameter(0x00);
LCD_ILI9341_Parameter(0x81);
LCD_ILI9341_Parameter(0x30);
/* Power on sequence control (EDh)
电源顺序控制
*/
DEBUG_DELAY();
LCD_ILI9341_CMD(0xED);
LCD_ILI9341_Parameter(0x64);
LCD_ILI9341_Parameter(0x03);
LCD_ILI9341_Parameter(0x12);
LCD_ILI9341_Parameter(0x81);
这些参数的写入是工厂提供的? |