Matrix Keyboard controlling LinuxCNC

More
24 Oct 2023 17:37 #283733 by AlexMagToast
Thanks,
this looks to be pretty clearly to be a bug in the code.
For some reason the Value is not written, my guess is that the if statement in Line 410 does not come true for some reason.

I added a couple more prints to the file, to maybe understand why it is not working.
Would you mind testing it for me? (i only have my phone available right now, sorry)
Attachments:

Please Log in or Create an account to join the conversation.

More
24 Oct 2023 18:59 #283745 by COFHAL
 

File Attachment:

File Name: DEBUGHALRUN.A.txt
File Size:2 KB
The problem continues, now the following appears in the DEBUG when playing with any Lpot:
setting Value
I received:L4:7

l
4
7
2
2
l
4
7
3
1
l
4
7
4
1
Attachments:

Please Log in or Create an account to join the conversation.

More
24 Oct 2023 21:11 - 24 Oct 2023 21:12 #283752 by AlexMagToast
well .. as always the Bug is caused by stupid little things.
I am sorry for this, but it is fixed now.
I'll also update the code on Github shortly. But meanwhile here is your code.

Thank you for the testing service ;)
 

File Attachment:

File Name: arduino-co...10-24.py
File Size:17 KB
Attachments:
Last edit: 24 Oct 2023 21:12 by AlexMagToast.

Please Log in or Create an account to join the conversation.

More
24 Oct 2023 22:07 #283755 by COFHAL
Thanks, I'll try it tomorrow.

Please Log in or Create an account to join the conversation.

More
25 Oct 2023 19:05 #283823 by COFHAL
Thank you so much. Now the Lpot is functional. Now I have another question. I am using the Keypad function all in mode 1, that is, as if I were pressing a key in Linux. but I have problems, for example with the key. (Dot), if I program it as "dot· or "." and press this key in debug an error appears, that is, it does not write a dot. Another problem that I have found is that if I use a key combination, such as Ctrl -space which in axis is used to delete error messages, for example, this combination does not work as such. Where you can find a list of how special characters or control keys should be programmed.

Please Log in or Create an account to join the conversation.

More
26 Oct 2023 07:33 #283849 by AlexMagToast
the script in use to emulate key presses is called xdotool. Unfortunately i have not found a perfect list yet, but usually you can find help be utilising google for the wanted usecase.
Also i find this to be useful: www.linux.org/threads/xdotool-keyboard.10528/

the dot is "period",
i guess the corrrect input for your combination should be "ctrl + space"

I am glad the Lpoti works now as intended. Thanks again for finding this bug.
The following user(s) said Thank You: COFHAL

Please Log in or Create an account to join the conversation.

More
29 Oct 2023 11:31 #284011 by panming
Alex,My procrastination seems to have eased a bit, and I turned in my homework.
The following user(s) said Thank You: COFHAL, AlexMagToast

Please Log in or Create an account to join the conversation.

More
29 Oct 2023 13:52 #284017 by AlexMagToast
this is awesome, thank you panming!
Do you allow me to use your footage in a future Video to explain the functionality?

Please Log in or Create an account to join the conversation.

More
29 Oct 2023 14:01 #284019 by panming
Sure, it's my pleasure. If there's anything else you need me to offer, I can. By the way,

Please Log in or Create an account to join the conversation.

More
29 Oct 2023 22:41 #284082 by COFHAL
Where do I buy that keyboard?

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum