-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
input: kbd_matrix: add an kbd_matrix_state shell command #65628
input: kbd_matrix: add an kbd_matrix_state shell command #65628
Conversation
2dc2a4e
to
a83995d
Compare
e434394
to
861f221
Compare
Add a print helper define for the keyboard matrix row paired with the row typedef. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
861f221
to
5d381cb
Compare
@gmarull @keith-zephyr ping |
subsys/input/input_utils.c
Outdated
@@ -119,6 +265,12 @@ SHELL_STATIC_SUBCMD_SET_CREATE( | |||
"usage: dump <on|off>", | |||
input_cmd_dump, 2, 0), | |||
#endif /* CONFIG_INPUT_EVENT_DUMP */ | |||
#ifdef CONFIG_INPUT_KBD_MATRIX_STATE |
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.
Can you add some documentation that guides the user on how to use and interpret the results from this command?
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.
hey I'm working on a doc page covering all the keyboard options and gpio keyboard modes (there's plenty enough to justify a whole page imo), will cover that there, I think it'll be the proper context
266e6b4
to
0f02a76
Compare
0f02a76
to
8f1162f
Compare
Add a "input kbd_matrix_state" shell command. This prints the state of a keyboard matrix in a much more compact representation than the normal input event dump, but also keeps track of any key seen during the execution and reports that on the "off" command. The output can be used to help setting the actual-key-mask property. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Add a test for the kbd_matrix_state shell command, both 8 and 16 bit row variants. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Enable INPUT_SHELL and INPUT_KBD_MATRIX_STATE by default if the sample is compiled with CONFIG_SHELL=y. This makes it easier to use the shell commands in the sample by just enabling the shell and let any help command turn on automatically. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
8f1162f
to
894d2bf
Compare
Add a "input kbd_matrix_state" shell command. This prints the state of a keyboard matrix in a much more compact representation than the normal input event dump, but also keeps track of any key seen during the execution and reports that on the "off" command. The output can be used to help setting the actual-key-mask property (#65703).