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

LVGL Factory example issue #39

Open
JackIsGoofingOff opened this issue Oct 11, 2024 · 4 comments
Open

LVGL Factory example issue #39

JackIsGoofingOff opened this issue Oct 11, 2024 · 4 comments

Comments

@JackIsGoofingOff
Copy link

Hi, I am here to seek for some helps about the lvgl factory example. I just ran the LVGL Factory example from the T-QT official folder and nothing wrong was reported from Serial Monitor. But the screen paused completely after a few seconds of running the wifi clock which I guess was related the following codes. May I know the possible reasons for it?
gui_init(); while (1) { lv_timer_handler(); }

@lewisxhe
Copy link
Contributor

The clock pause may be related to the wifi connection. Are you sure you are connected to the correct wifi?

if (!WiFi.isConnected())return;

@JackIsGoofingOff
Copy link
Author

In the screen it shows that wifi has been connected and the clock actually can run for a few seconds

@lewisxhe
Copy link
Contributor

Try pressing the button to see if the page switches!

@OomNiel
Copy link

OomNiel commented Dec 1, 2024

Fix regarding this issue:

in 'void update_sensor(lv_timer_t *timer)' function:- comment out the line: 'if (!WiFi.isConnected())return;'
The WiFi will disconnect when time is retrieved from the NTP server.
This is set up in function: void timeavailable(struct timeval *t)
I presume this is done in order to prevent the application from spamming the NTP server with requests.

Also:
IF using the old T-QT board, add: '#define USE_HSPI_PORT' in the 'Setup211_LilyGo_T_QT_Pro_S3.h' file.
It seems that the board use the alternative HSPI spi port for driving the lcd.

The published example was obviously not tested for using on the old board.

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

3 participants