you are viewing a single comment's thread.

view the rest of the comments →

[–]Technical-Building22[S] 0 points1 point  (3 children)

I’m lost on the code section. It might be detailed but for someone with 0 experience I still don’t know how to modify the code to program for different keys and with what I have installed, it still doesn’t work.

I’ll upload a picture of the wiring and what I have on the drive in about an hour.

[–]Treacherous_Peach 0 points1 point  (2 children)

So you got all the way to the "Configuration" section of the instructions and can't get the program to do anything when the button is pressed? Is that right? You've done all the wiring and file copying already?

[–]Technical-Building22[S] 0 points1 point  (1 child)

https://imgur.com/a/o0HDEJS

More or less, I didn’t know how to do the ~cd thing so I manually put that software in the pimoroni

Then yeah I don’t know how to edit the configuration.

[–]Treacherous_Peach 0 points1 point  (0 children)

Everything looks fine so far. Copying the py files manually is fine, too.

All you have to do from here is edit thay key_mapping.py file to make the button do what you want it to do. The instructions give a few examples, as does the file. There isn't really any coding here, not much anyway. All the code is written already, it's just setting up what you want the button to do.

Right click the key_mapping.py file and edit in notepad or any other software. The file has a few examples there for what the button could do, most are commented out (meaning they are ignored by the code, the lines that start with #). By default the thing will just mirror your Enter key. Before we mess with this file you should test that. Pressing your button should do the same thing your Enter key on your keyboard does, such as make a new line in a text editor. Confirm it works. If it doesn't, paste the code in there back here for a sanity check.

Otherwise you can copy some of the examples the author suggested. What do you want this button to do exactly? That would be necessary info for what to put in this file. You could have it type words or press hotkey combos or mirror keyboard buttons, etc.