- Posts: 19899
- Thank you received: 4655
New component for keyboards and panels.
- andypugh
- Offline
- Moderator
-
Less
More
5 years 3 months ago #216342
by andypugh
Replied by andypugh on topic New component for keyboards and panels.
It is probably possible to do it with two sendkeys components, wiring the pins to both and enabling one or the other.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
5 years 3 months ago - 5 years 3 months ago #216343
by andypugh
Replied by andypugh on topic New component for keyboards and panels.
I think that a better way would be to add a new code to the config string, (maybe a for alternate) "a2" would create two "shift bits" as pins, and then the scancode params would be:
setp sendkeys.0.pin-event-01
setp sendkeys.0.pin-event-01-1
setp sendkeys.0.pin-event-01-2
setp sendkeys.0.pin-event-01-3
(for no shift, shift 1, shift 2 and both shifts)
I would also add a scancode (negative?) to set the shift bits from the keyboard. (and bidirectional bits in HAL to show or set status)
setp sendkeys.0.pin-event-01
setp sendkeys.0.pin-event-01-1
setp sendkeys.0.pin-event-01-2
setp sendkeys.0.pin-event-01-3
(for no shift, shift 1, shift 2 and both shifts)
I would also add a scancode (negative?) to set the shift bits from the keyboard. (and bidirectional bits in HAL to show or set status)
Last edit: 5 years 3 months ago by andypugh.
Please Log in or Create an account to join the conversation.
- nkp
- Offline
- Premium Member
-
Less
More
- Posts: 143
- Thank you received: 39
5 years 1 month ago - 5 years 1 month ago #221483
by nkp
Replied by nkp on topic New component for keyboards and panels.
Last edit: 5 years 1 month ago by nkp.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- nkp
- Offline
- Premium Member
-
Less
More
- Posts: 143
- Thank you received: 39
5 years 1 month ago - 5 years 1 month ago #221685
by nkp
Replied by nkp on topic New component for keyboards and panels.
I am trying to use sendkeys with matrix_kb component. (No board 7i73)
Are there any restrictions on the number of rows in the component matrix_kb?
For example is a 9x7s configuration possible ?
Are there any restrictions on the number of rows in the component matrix_kb?
For example is a 9x7s configuration possible ?
Last edit: 5 years 1 month ago by nkp.
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
5 years 1 month ago #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.
- nkp
- Offline
- Premium Member
-
Less
More
- Posts: 143
- Thank you received: 39
5 years 1 month ago #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.
Time to create page: 0.669 seconds