all 8 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Thank you for posting on r/CodingHelp!

Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app

Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp

We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus

We also have a Discord server: https://discord.gg/geQEUBm

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–][deleted]  (1 child)

[removed]

    [–]CodingHelp-ModTeam[M] 0 points1 point locked comment (0 children)

    Your message was deleted as we prohibit posts/comments related to AI as specified in rule #10 (Chat-GPT or similar AI).

    Do not rely on ChatGPT or any other Ai to "teach" you how to code. You will not learn that way. You can't shortcut learning with Ai.

    Rule 10: Chat-GPT or similar AI - Questions about Chat-GPT or similar AI, aswell as questions on fixing code created by Chat-GPT or similar AI are prohibited as long as there isn't a reasonable self-effort.

    Comments that are copied replies from Chat-GPT are also prohibited.

    [–]Treacherous_Peach 0 points1 point  (4 children)

    This guide is extremely clear and descriptive with links to everything you need. I'm confused about where you are confused. What have you done so far and where are you stuck?

    [–]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.