-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
It's not working for me. I little modify "LCD_Send_Cmd" and "LCD_Send_Dat" and it's work:
#define DAT 0x60080000
#define CMD 0x60000000
inline static void LCD_Send_Cmd(uint16_t cmd)
{
*(uint16_t *) (CMD) = cmd;
}
inline static void LCD_Send_Dat(uint16_t dat)
{
*(uint16_t *) (DAT)= dat;
}
void LCD_Init(void)
{
LCD_RST_SET
HAL_Delay(100);
LCD_Send_Cmd(HX8357_SLPOUT);
HAL_Delay(150);
LCD_Send_Cmd(HX8357_COLMOD);
HAL_Delay(10);
LCD_Send_Dat(0x55);
HAL_Delay(10);
LCD_Send_Cmd(HX8357_DISPON);
HAL_Delay(10);
LCD_Send_Cmd(HX8357_INVON);
HAL_Delay(10);
LCD_Orientation(DEFAULT_ORIENTATION);
HAL_Delay(10);
}
Metadata
Metadata
Assignees
Labels
No labels