-
Notifications
You must be signed in to change notification settings - Fork 176
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 All The Things! #539
LVGL All The Things! #539
Conversation
* Button input handle by LVGL * All screen related code into screen.c * Screen class handles boot, config, logo and carousel * Scrolling long lines * Add live updating stats * Add screen transition animations
…l-all-the-things
Other changes: * self test results, is_screen_active and ip_addr_str in GLOBAL_STATE * Fix long label scrolling * Add callback for long press function
Upgraded my Supra without a screen and it unfortunately didn't come back online. I'll plug in the USB later to get the logs. |
|
Found the issue. I2C error on panel init stops it from initialising LVGL, which is needed later on. |
I got the button working without the screen. It does complain a lot on boot:
This also means self test succeeds even without a display. It does throw the same errors. |
Complaining is fine, as long as it does not spam (or even worse impact performance) after boot is done. |
No, it only complains at boot. All screen handling and updating is done in an Lines 306 to 317 in 78ec3c8
|
Combined PR for the LVGL implementation. For the bare bones implementation of LVGL alone, please have a look at #434 first. This PR pushes it a lot further, by leveraging LVGL functionalities and cleanup up a lot of code. Some noticeable:
Implementation wise the biggest change is that a lot of data is passed through GLOBAL_STATE, which cleans up a lot of display logic form other places.
Things to do/check:
IP address changes;✅Pool changes, both fallback as well as configuration changes;✅Block found screen;✅Invalid ASIC model. When does this happen and what should be displayed?✅Checking of overheat mode reset is moved to power management task;✅Show connection screen again if AP mode is enabled;✅