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

Display stops updating occasionally #3607

Open
Battou2501 opened this issue Jan 5, 2025 · 2 comments
Open

Display stops updating occasionally #3607

Battou2501 opened this issue Jan 5, 2025 · 2 comments

Comments

@Battou2501
Copy link

Hi. I have an issue with display stopping responding to draw commands. The sketch is running and responding to button inputs, buzzer activation, led backlight control etc. But image will not redraw. I have an esp32 controlled pcb that controlls 220v load and a st7796u ips display. I have set spi frequency to 20mhz already. Sometimes it happens when I connect new 220v load. This I think is because of emi from spark in the controlled outlet. But sometimes it happens after few days of running the devise. Display is connected with a 1.5 meter 10 pin ribbon cable and idc connectors. Could it be some stray emi that breaks sync? Or is it spi code freezing? Is there a way to reinit spi communication without total redraw and without loosing current image on display?

@Battou2501
Copy link
Author

Battou2501 commented Jan 6, 2025

For now I am testing getting SPI instance from tft usion getSPIinstance method and then calling tft_spi.end() and tft_spi.begin(...TFT_pins...) before any screen update to ensure correct communication during drawing. Tested with outlet plug in spark, screen continued to update every second correctly. Is there a beter way of ensuring spi sync before drawing?

@Battou2501
Copy link
Author

Battou2501 commented Jan 6, 2025

Nope.( This method does nothing after all. Still getting stuck image on the screen. (

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