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

False setup of spi bus and delay after reset is not long enough. #38

Open
SonnyAndersen opened this issue Jan 3, 2025 · 1 comment
Open

Comments

@SonnyAndersen
Copy link

I have tested and it was very unstable.

Other who have worked with the ST7789 (ATM0130B3) has clock polarity low.

image

Also DMA needs to be setup.

image

Better but still unreliable. using reset button could sometimes get it working correctly.

Last issue was the reset timing, or more precisely the delay after reset for ST7789 to come correct out of reset.

void ST7789_Init(void)
{
#ifdef USE_DMA
memset(disp_buf, 0, sizeof(disp_buf));
#endif
HAL_Delay(20);
ST7789_RST_Clr();
HAL_Delay(20);
ST7789_RST_Set();
HAL_Delay(500);

With does things is fixed then the driver works well.

(Forks has the same problem)

BR Sonny

@W-Linus
Copy link

W-Linus commented Jan 5, 2025

Thanks a lot! When I using this library to drive 1.47inch Screen on STM32G431CB, I've found the display very unstable. As you said, I tried to add more delay after reset, the screen is stabled now, I think the author should add more delay into the code.

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

2 participants