void lcd_init() { GPIO_TypeDef *gpiod = GPIOD ; LCD_BL_Config(); LCD_Hardware_Init(); #ifdef REVPLUS initLcdSpi() ; #endif gpiod->BSRRL = PIN_LCD_RST ; // RST high Delay(5); gpiod->BSRRH = PIN_LCD_RST ; // RST low Delay(120); //11ms gpiod->BSRRL = PIN_LCD_RST ; // RST high Delay(2500); AspiCmd(0xE2); // System Reset Delay(2500); LCD_Init(); Delay(120); AspiCmd(0xAF); //dc2=1, IC into exit SLEEP MODE, dc3=1 gray=ON, dc4=1 Green Enhanc mode disabled }
void lcdInit() { LCD_BL_Config(); LCD_Hardware_Init(); LCD_RST_HIGH(); Delay(5); LCD_RST_LOW(); Delay(120); //11ms LCD_RST_HIGH(); Delay(2500); AspiCmd(0xE2); Delay(2500); LCD_Init(); Delay(120); LCD_Init(); Delay(120); AspiCmd(0xAF); //dc2=1, IC into exit SLEEP MODE, dc3=1 gray=ON, dc4=1 Green Enhanc mode disabled }