-
Notifications
You must be signed in to change notification settings - Fork 185
examples: Update all from API v8 to v9. #395
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
Draft
andrewleech
wants to merge
17
commits into
lvgl:master
Choose a base branch
from
andrewleech:examples_update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Replace move_foreground() with move_to_index() for v9 compatibility - Change lv.indev_get_act() to lv.indev_active() - Update del_async() to delete_async() - Update set_ready_cb() to set_completed_cb() These changes align with the LVGL v9 API naming conventions.
Replace lv.scr_act() with lv.screen_active() to align with v9 API.
The example was using machine.SPI and machine.Pin without importing the machine module.
Fix center() method call and add_event() -> add_event_cb() for LVGL v9.
Fix add_event() -> add_event_cb() and align() offset parameters for LVGL v9.
Remove offset parameters from align() method for LVGL v9.
Remove offset parameters from align() methods and use separate position setters for LVGL v9.
Remove offset parameters from align() methods and use set_y() for positioning in LVGL v9.
Remove offset parameters from align() methods and use set_y() for positioning in LVGL v9.
Remove offset parameters from align() method for LVGL v9.
Fix lv.indev_get_act() -> lv.indev_active() for LVGL v9.
Replace set_buffers() with set_draw_buffers() and set_render_mode() for LVGL v9. Use lv.draw_buf_create() instead of framebuffer() for creating draw buffers.
…ndling. Add comprehensive docstring explaining widget creation and theming. Add error handling for display_driver import. Improve code organization and readability.
…handling. Add comprehensive docstring explaining PNG decoder usage and requirements. Add error handling for display driver import and PNG file loading. Add fallback behavior when PNG file is not found. Improve code organization and user feedback.
…documentation and error handling. Add detailed docstring with font conversion commands and usage instructions. Add error handling for display driver, filesystem driver, and font loading. Improve code organization and user feedback. Add fallback behavior when fonts fail to load.
Add missing machine module import for RP2 platform initialization.
Add detailed README covering all examples, platform support, and best practices. Include troubleshooting guide, requirements, and contribution guidelines. Provide clear overview of features demonstrated and usage instructions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR attempts to update all the examples to the current v9 api.
CLaude Code (AI) was used heavily for this, with the stubs generated in #388 providing the neccesary input to make these changes automatically.
This PR is draft still pending testing on real hardware.