New component for keyboards and panels.
27 Sep 2021 05:43 #221686
by RotarySMP
Replied by RotarySMP on topic New component for keyboards and panels.
When I set up my martrix_kb, I got the impression that not many people use it, so it is possible no one has tested a matrix such as 9x7. Try it. LinuxCNC will soon tell you if it doesn't like a result.
If you need a worked example, my HAL has a 5x5 matrix, It gets created in my HAL, and then used in my Postgui Hal. Both can be found attached to the first couple of posts in this thread.
forum.linuxcnc.org/12-milling/33035-retr...-maho-mh400e?start=0
If you need a worked example, my HAL has a 5x5 matrix, It gets created in my HAL, and then used in my Postgui Hal. Both can be found attached to the first couple of posts in this thread.
forum.linuxcnc.org/12-milling/33035-retr...-maho-mh400e?start=0
Please Log in or Create an account to join the conversation.
27 Sep 2021 05:49 #221688
by nkp
Replied by nkp on topic New component for keyboards and panels.
The fact of the matter is that I tried to use 9x7s. 8 rows Ok, and the ninth does not work.
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
27 Sep 2021 16:35 - 27 Sep 2021 18:21 #221707
by RotarySMP
Replied by RotarySMP on topic New component for keyboards and panels.
8x8=64
9x7=63
Does an 8x8 work for you? you dont have to populate every switch. I have a 5x5 but only use about 21.
Mark
9x7=63
Does an 8x8 work for you? you dont have to populate every switch. I have a 5x5 but only use about 21.
Mark
Last edit: 27 Sep 2021 18:21 by RotarySMP.
Please Log in or Create an account to join the conversation.
28 Sep 2021 16:46 - 28 Sep 2021 23:29 #221761
by nkp
Replied by nkp on topic New component for keyboards and panels.
Del
Attachments:
Last edit: 28 Sep 2021 23:29 by nkp.
Please Log in or Create an account to join the conversation.
09 Aug 2023 16:41 #277448
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
I have my 7i73 configured for a 4x8 keyboard with LCD. From what I've read I can use the SENDKEYS component both to generate a virtual keyboard and to generate HAL pins. In the example of the SENDKEYS component, what is not clear to me is how they are physically connected to the Keys inputs in /i73 and if the Matrix_Kb function must also be defined.
Please Log in or Create an account to join the conversation.
09 Aug 2023 17:11 #277451
by PCW
Replied by PCW on topic New component for keyboards and panels.
If you want to directly control hal pins in real time with the 7I73
you would use the matrix_kb component. If you want 7i73 key events
to send normal keystroke events you can just use the sendkeys.
If you want both (real time hal pins from 7I73 in addition to normal keystroke
events) you can use both matrix_kb plus sendkeys
you would use the matrix_kb component. If you want 7i73 key events
to send normal keystroke events you can just use the sendkeys.
If you want both (real time hal pins from 7I73 in addition to normal keystroke
events) you can use both matrix_kb plus sendkeys
Please Log in or Create an account to join the conversation.
09 Aug 2023 17:25 #277452
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
Thank you for your prompt response, could you help me with a simple configuration, using both.
Please Log in or Create an account to join the conversation.
09 Aug 2023 17:31 #277453
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
I use the example:
Loadusr -W sendkeys config=16t2
net scancodes hm2_7i73.0.0.keycode => sendkeys.0.keycode
setp sendkeys.0.scan-event-00 34 # Key G
setp sendkeys.0.scan-event-01 2 # Key 1
setp sendkeys.0.scan-event-02 3 # Key 2
setp sendkeys.0.scan-event-03 4 # Key 3
setp sendkeys.0.scan-event-04 50 # Key M
setp sendkeys.0.scan-event-05 05 # Key 4
setp sendkeys.0.scan-event-06 06 # Key 5
setp sendkeys.0.scan-event-07 07 # Key 6
setp sendkeys.0.scan-event-08 31 # Key S
setp sendkeys.0.scan-event-09 8 # Key 7
setp sendkeys.0.scan-event-10 9 # Key 8
setp sendkeys.0.scan-event-11 10 # Key 9
setp sendkeys.0.scan-event-12 20 # Key T
setp sendkeys.0.scan-event-13 11 # Key 0
setp sendkeys.0.scan-event-14 52 # Key Dot
setp sendkeys.0.scan-event-15 14 # Backspace
setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
setp sendkeys.0.init 1
but I don't get any response when I press any of the keypad buttons, which doesn't happen to me when I use the Matrix_kb component, where with the halmeter you can verify the activation of the buttons.
Loadusr -W sendkeys config=16t2
net scancodes hm2_7i73.0.0.keycode => sendkeys.0.keycode
setp sendkeys.0.scan-event-00 34 # Key G
setp sendkeys.0.scan-event-01 2 # Key 1
setp sendkeys.0.scan-event-02 3 # Key 2
setp sendkeys.0.scan-event-03 4 # Key 3
setp sendkeys.0.scan-event-04 50 # Key M
setp sendkeys.0.scan-event-05 05 # Key 4
setp sendkeys.0.scan-event-06 06 # Key 5
setp sendkeys.0.scan-event-07 07 # Key 6
setp sendkeys.0.scan-event-08 31 # Key S
setp sendkeys.0.scan-event-09 8 # Key 7
setp sendkeys.0.scan-event-10 9 # Key 8
setp sendkeys.0.scan-event-11 10 # Key 9
setp sendkeys.0.scan-event-12 20 # Key T
setp sendkeys.0.scan-event-13 11 # Key 0
setp sendkeys.0.scan-event-14 52 # Key Dot
setp sendkeys.0.scan-event-15 14 # Backspace
setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
setp sendkeys.0.init 1
but I don't get any response when I press any of the keypad buttons, which doesn't happen to me when I use the Matrix_kb component, where with the halmeter you can verify the activation of the buttons.
Please Log in or Create an account to join the conversation.
09 Aug 2023 20:25 #277472
by PCW
Replied by PCW on topic New component for keyboards and panels.
Did you do all the uinput setup?
Do the pin-events work?
Do the pin-events work?
Please Log in or Create an account to join the conversation.
09 Aug 2023 21:00 #277474
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
YES, this shows in the terminal:
linuxcnc@raspberrypi:~ $ ls -l /dev/uinput
crw
1 root root 10, 223 Aug 9 12:06 /dev/uinput
linuxcnc@raspberrypi:~$
This is my configuration using Matrix_kb with SENDKEYS:
#---KEYPAD----#
loadrt matrix_kb config=4x8
addf matrix_kb.0 servo-thread
net keypad <= hm2_7i92.0.7i73.0.0.keycode => matrix_kb.0.keycode
#---KEYPAD----#
#----sendkeys----#
loadusr -W sendkeys config=16t2
#net scancodes hm2_7i92.0.7i73.0.0.keycode => sendkeys.0.keycode
setp sendkeys.0.scan-event-00 34 # Key G
setp sendkeys.0.scan-event-01 2 # Key 1
setp sendkeys.0.scan-event-02 3 # Key 2
setp sendkeys.0.scan-event-03 4 # Key 3
setp sendkeys.0.scan-event-04 50 # Key M
setp sendkeys.0.scan-event-05 05 # Key 4
setp sendkeys.0.scan-event-06 06 # Key 5
setp sendkeys.0.scan-event-07 07 # Key 6
setp sendkeys.0.scan-event-08 31 # Key S
setp sendkeys.0.scan-event-09 8 # Key 7
setp sendkeys.0.scan-event-10 9 # Key 8
setp sendkeys.0.scan-event-11 10 # Key 9
setp sendkeys.0.scan-event-12 20 # Key T
setp sendkeys.0.scan-event-13 11 # Key 0
setp sendkeys.0.scan-event-14 52 # Key Dot
setp sendkeys.0.scan-event-15 14 # Backspace
setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
setp sendkeys.0.init 1
#----sendkeys----#
Logically it gives me an error because hm2_7i92.0.7i73.0.0.keycode is already connected to matrix_kb.0.keycode, and I don't know how to remove that error.
linuxcnc@raspberrypi:~ $ ls -l /dev/uinput
crw
1 root root 10, 223 Aug 9 12:06 /dev/uinput
linuxcnc@raspberrypi:~$
This is my configuration using Matrix_kb with SENDKEYS:
#---KEYPAD----#
loadrt matrix_kb config=4x8
addf matrix_kb.0 servo-thread
net keypad <= hm2_7i92.0.7i73.0.0.keycode => matrix_kb.0.keycode
#---KEYPAD----#
#----sendkeys----#
loadusr -W sendkeys config=16t2
#net scancodes hm2_7i92.0.7i73.0.0.keycode => sendkeys.0.keycode
setp sendkeys.0.scan-event-00 34 # Key G
setp sendkeys.0.scan-event-01 2 # Key 1
setp sendkeys.0.scan-event-02 3 # Key 2
setp sendkeys.0.scan-event-03 4 # Key 3
setp sendkeys.0.scan-event-04 50 # Key M
setp sendkeys.0.scan-event-05 05 # Key 4
setp sendkeys.0.scan-event-06 06 # Key 5
setp sendkeys.0.scan-event-07 07 # Key 6
setp sendkeys.0.scan-event-08 31 # Key S
setp sendkeys.0.scan-event-09 8 # Key 7
setp sendkeys.0.scan-event-10 9 # Key 8
setp sendkeys.0.scan-event-11 10 # Key 9
setp sendkeys.0.scan-event-12 20 # Key T
setp sendkeys.0.scan-event-13 11 # Key 0
setp sendkeys.0.scan-event-14 52 # Key Dot
setp sendkeys.0.scan-event-15 14 # Backspace
setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
setp sendkeys.0.init 1
#----sendkeys----#
Logically it gives me an error because hm2_7i92.0.7i73.0.0.keycode is already connected to matrix_kb.0.keycode, and I don't know how to remove that error.
Please Log in or Create an account to join the conversation.
Time to create page: 0.098 seconds