2021-01-12 05:02 AM
uint8_t lcdRegData[2];
extern DSI_HandleTypeDef hdsi;
void Wrt_Reg_3052(uint8_t Par1,uint8_t Par2)
{
lcdRegData[0]=Par2;
HAL_DSI_LongWrite(&hdsi, 0, DSI_DCS_LONG_PKT_WRITE, 1, Par1, lcdRegData);
}
uint8_t NV3051D_Init(uint32_t ColorCoding, uint32_t orientation)
{
LCD_RESET_GPIO_Port->BSRR = LCD_RESET_Pin;
HAL_Delay(1);
HAL_GPIO_WritePin(LCD_RESET_GPIO_Port, LCD_RESET_Pin, GPIO_PIN_RESET);
HAL_Delay(1);
LCD_RESET_GPIO_Port->BSRR = LCD_RESET_Pin;
HAL_Delay(150);
HAL_DSI_Start(&(hdsi));
HAL_Delay(15);
Wrt_Reg_3052(0xFF,0x30);
exist way to check last command is sucess??? And ofcourse HAL_OK is returned always, i need other check.