Question About Keyboards

How would I go about making a diy keyboard with an arduino leonardo or preferably an uno with a reflashed 16u2 chip that can act as a hid device but also be controlled by the pc like with led colors or input layers. I would like to write the pc app in rust but am not fussy.
Thanks

You begin with making a physical keyboard and then you wire the keys so your Arduino can decide what key is pressed and when it is released. When that works, only then, do you consider how you want to communicate that data to your PC.

Thanks mate.
To be honest I have made it work completely and wrote custom code with 3dprinted halleffect switches. this was more the second stage where I wanted to make the lights change under different circumstance like if the user chooses an effect or if your playing a specific game.
Thanks anyway as this is amazing guidance if I had not already got to this stage.

Then your keyboard question does not relate to a keyboard, but to the communications with your PC program and the data back and forth between the two.

I recommend looking around to see what has already been done in this space. I know there are some pretty amazing open source DIY keyboard projects. You might find that one of those meets you needs, or at least provides a good starting point for your own work rather than having to start from scratch.

yes,
my English is not amazing so I was a little unsure on how to write the question

I have looked at qmk firmware but im not sure on how i can talk to it or make it work with my custom switches.
Thanks anyway

Fooled me!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.