We’ll be using the Keyboard type, as that works best with the sorts of games that this author likes to play, but you can use exactly the same technique to simulate a mouse or a gamepad.īefore we get onto this, though, let’s take a look at the buttons and how to wire them up. This is why, for example, you can plug almost any USB keyboard into almost any computer and it will just work, with no need to install drivers. The sort of USB devices that we interact with are called human interface devices (HIDs), and there are standard protocols for common HIDs, including keyboards and mice. We’ll use CircuitPython for this as it has excellent support for USB interfaces.
0 Comments
Leave a Reply. |