Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HX8357_HAL #3

Open
Aidabs opened this issue Nov 9, 2023 · 1 comment
Open

HX8357_HAL #3

Aidabs opened this issue Nov 9, 2023 · 1 comment

Comments

@Aidabs
Copy link

Aidabs commented Nov 9, 2023

Hello. I have a problem with hx8357 and bluepill. The display does not work if the frequency of stm32f103c8t6 more than 7 MHz. On 1-7 MHz it's work, but very slowly, if it’s more, the backlight just turns on and nothing happens. What could be the problem?

@Aidabs
Copy link
Author

Aidabs commented Nov 27, 2023

I modify init, and it's work:

void LCD_Init(void)
{
LCD_RST_S();
HAL_Delay(100);
LCD_Send_Cmd(HX8357_SLPOUT);
HAL_Delay(100);
LCD_Send_Cmd(HX8357_COLMOD);
HAL_Delay(5);
LCD_Send_Dat(0x55);
HAL_Delay(5);
LCD_Send_Cmd(HX8357_DISPON);
HAL_Delay(5);
LCD_Send_Cmd(HX8357_INVON);
HAL_Delay(5);
LCD_Orientation(DEFAULT_ORIENTATION);
HAL_Delay(5);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant