-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
samples: drivers: added a simple touch controller sample #77227
Conversation
46b12b8
to
b933835
Compare
5657949
to
15d0c29
Compare
Thanks for the PR @fkokosinski! |
@kartben I would go for the LVGL one and try to debulk it some more to make it easier for lower end targets. |
Hey @kartben @faxe1008, thanks for your comments. Ideally, we'd like this demo to work on smaller targets as well, where e.g. there's not enough space for LVGL. Plus, we think that having a kind of "minimal" demo with no additional library overhead can be beneficial when working on a new input driver, or debugging an old one. So we'd opt for keeping this demo separate from the one you've linked. Let me know what you guys think. Thanks |
Hey @kartben, let me know if there's something blocking us from moving forward with this PR. Thanks! |
zephyr,display = &sdl_dc; | ||
zephyr,touch = &input_sdl_touch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first is already in boards/native/native_sim/native_sim.dts
, it should not be needed here, the second should probably go in the board file, @kartben what do you think?
15d0c29
to
689667f
Compare
314daf5
to
a2570c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good. Only thing from my side: iirc there is a doc file which explains the different chosen nodes used in zephyr upstream. An entry there would be also good.
6cd4b55
to
2c62c0e
Compare
2c62c0e
to
5b0e1cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thanks!
@fkokosinski in the future please refrain from marking comments as resolved yourself - it's rather inconvenient to have to go through all closed conversations to check and, more importantly, it's up to the original reviewer to confirm their recommendations have been properly addressed. https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html#workflow-suggestions-that-help-reviewers
Thanks!
Right, sorry about that. I'll keep this in mind in the future :) |
The CI failure seems to be unrelated. On 8fda052 (main) I seem to be getting the exact same error when running |
de4ced4
to
25158c3
Compare
25158c3
to
727594d
Compare
The sample is supposed to help examine the issues with touchscreen. It draws a plus in last touched position. Signed-off-by: Dominik Lau <dlau@internships.antmicro.com> Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This adds zephyr,touch property to boards with touch controllers, analogous to `zephyr,display`. Signed-off-by: Dominik Lau <dlau@internships.antmicro.com> Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This inverts x and y axes as reported by stmpe811 driver for stm32f429i. Signed-off-by: Dominik Lau <dlau@internships.antmicro.com> Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
727594d
to
bb062b0
Compare
Rebased due to failing CI. |
This PR adds a sample for the touch controller. The sample is supposed to help examine issues when working with touchscreens. It draws a plus in the last touched position.
Can be tested natively with: