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

demo: lvgl: Add lvgl sample to draw touch events on the screen #67508

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrMarteng
Copy link
Collaborator

This is a small lvgl touch demo application featuring functionality to "draw" on the the screen.
This can be useful to test touch input functionality during board setup.

@MrMarteng MrMarteng force-pushed the lvgl_touch_draw_sample branch 8 times, most recently from b2b1c7d to 55b20e6 Compare January 14, 2024 12:21
@MrMarteng MrMarteng marked this pull request as ready for review January 14, 2024 14:32
@zephyrbot zephyrbot added area: LVGL Light and Versatile Graphics Library Support area: Samples Samples labels Jan 14, 2024
Copy link
Collaborator

@faxe1008 faxe1008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly small things, thanks for separating this out 👍

samples/modules/lvgl/touch_draw/prj.conf Outdated Show resolved Hide resolved
samples/modules/lvgl/touch_draw/prj.conf Outdated Show resolved Hide resolved
samples/modules/lvgl/touch_draw/prj.conf Outdated Show resolved Hide resolved
modules/lvgl/input/lvgl_pointer_input.c Outdated Show resolved Hide resolved
samples/modules/lvgl/touch_draw/prj.conf Show resolved Hide resolved
samples/modules/lvgl/touch_draw/src/main.c Show resolved Hide resolved
samples/modules/lvgl/touch_draw/src/main.c Outdated Show resolved Hide resolved
samples/modules/lvgl/touch_draw/src/main.c Show resolved Hide resolved
samples/modules/lvgl/touch_draw/src/main.c Show resolved Hide resolved
samples/modules/lvgl/touch_draw/src/main.c Outdated Show resolved Hide resolved
@MrMarteng
Copy link
Collaborator Author

@faxe1008 Could you please have a look at my latest modifications?

Copy link
Collaborator

@faxe1008 faxe1008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Morning @MrMarteng ,

I went over all conversations and marked the ones addressed by your latest push as resolved. Can you look into the remaining ones? Thank you :)

@MrMarteng
Copy link
Collaborator Author

MrMarteng commented Feb 21, 2024

Morning @MrMarteng ,

I went over all conversations and marked the ones addressed by your latest push as resolved. Can you look into the remaining ones? Thank you :)

@faxe1008 Did you submit additional comments? I already commented on all your feedback and don't see open requests for modifications.

@faxe1008
Copy link
Collaborator

Yeah, there are still some of them unresolved. In case this is an issue with Github somehow here is the list of them:

Nit: Include sorting order
Question: Why was this moved into the switch case?
You can use k_sleep(lv_task_handler())
To make the clearing also available on the native_sim can you add a overlay with gpio_emul?

@MrMarteng
Copy link
Collaborator Author

MrMarteng commented Feb 22, 2024

Yeah, there are still some of them unresolved. In case this is an issue with Github somehow here is the list of them:

Nit: Include sorting order Question: Why was this moved into the switch case? You can use k_sleep(lv_task_handler()) To make the clearing also available on the native_sim can you add a overlay with gpio_emul?

@faxe1008 Sorry, my bad. I was the one who missed to submit the comments ;-)
I commented on all your input

@MrMarteng
Copy link
Collaborator Author

Yeah, there are still some of them unresolved. In case this is an issue with Github somehow here is the list of them:
Nit: Include sorting order Question: Why was this moved into the switch case? You can use k_sleep(lv_task_handler()) To make the clearing also available on the native_sim can you add a overlay with gpio_emul?

@faxe1008 Sorry, my bad. I was the one who missed to submit the comments ;-) I commented on all your input

@faxe1008 kind reminder to review my comments

faxe1008
faxe1008 previously approved these changes Mar 3, 2024
Copy link
Collaborator

@faxe1008 faxe1008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one still remaining thing of my comments that was not resolved is the overlay for the native_sim. If you feel like this is not needed - fine by me.

@pdgendt
Copy link
Collaborator

pdgendt commented Mar 15, 2024

@MrMarteng can you rebase on latest main and verify that it works with hwmv2?

@MrMarteng
Copy link
Collaborator Author

@pdgendt branch is up-to-date now.
Sorry for the late response. I was quite busy beginning of this year.

@MrMarteng
Copy link
Collaborator Author

@kartben @brgl @pdgendt kind reminder

@@ -46,15 +54,6 @@ static void lvgl_pointer_process_event(const struct device *dev, struct input_ev
return;
}

/* adjust coordinates */
if (cfg->swap_xy) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was included within #70541


#ifdef CONFIG_GPIO
if (gpio_is_ready_dt(&button_gpio)) {
int err;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move upwards below struct button_callback_context btn_cb_ctx;

Copy link
Collaborator Author

@MrMarteng MrMarteng Jul 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good proposal. Fixed in 4393b90

Copy link

github-actions bot commented Jul 5, 2024

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

This is a small lvgl touch demo application featuring
functionality to "draw" on the the screen.
This can be useful to test touch input functionality
during board setup.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
@MrMarteng
Copy link
Collaborator Author

@brgl @kartben PR is ready for review again

@pdgendt
Copy link
Collaborator

pdgendt commented Jul 16, 2024

Zephyr currently has a feature freeze for 3.7, this will have to wait for the LTS release.

Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Sep 15, 2024
@pdgendt pdgendt removed the Stale label Sep 15, 2024
@mmahadevan108
Copy link
Collaborator

@kartben , can you take a look at this PR

@@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto with esp32s2 overlay

Comment on lines +144 to +145
lv_task_handler();
k_sleep(K_MSEC(10));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lv_task_handler();
k_sleep(K_MSEC(10));
k_sleep(lv_task_handler());

@mmahadevan108
Copy link
Collaborator

@MrMarteng , could you help look at the comments from @kartben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LVGL Light and Versatile Graphics Library Support area: Samples Samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants