I am programming software for a custom keyboard I am making. I am wondering how to program the pro micro to send USB interrupts to a computer via a USB-C port
What is the computer supposed to do with an interrupt message it gets over USB?
"USB Interrupts" are normally part of a a protocol defined by a particular USB "class." eg: When the mouse detects movement, it prepares an Interrupt Message for the host. In Arduino environments, you normally interact with USB at a higher level: "Send a mouse movement message" (which happens to be an "Interrupt.")
In any case, a USB "interrupt" is not the same as typical microcontroller interrupts, and you have to know what sort of driver you are talking to on the host side and what sort of "interrupt message" it wants to receive.
if you want to make a keyboard, dont get to caught up in "sending interrupts". Its just data & a clock. You need native usb, which you have in the pico, if you search for a joystick library, that should get you going in the right direction.
also search "button box" --they are basically custom keyboards people make for things like PC flight simulator controls.
I figured it out
Do you mind sharing your solution so others can learn from it?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.