Skip to content

HX8357_FSMC #4

@Aidabs

Description

@Aidabs

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions