10 years, 8 months ago.

Mbed read keyboard strokes over USB

Is there a way to directly connect a USB keyboard into the Mbed and read the key strokes press?

i.e. If I press A on the keyboard the Mbed will flash its LED's, or if i press B then the LED turn on and stay on.

I've seen that there is a USBKeyboard class already but thats to make the Mbed look like a keyboard when instead i want to read the inputs from a keyboard.

If some one does have a solution to this could you show me some example code so that I get a quick grasp of it.

Thanks again Mbed'ers!

1 Answer

10 years, 8 months ago.

This requires a board with a USB host port. Few boards have one. See http://mbed.org/handbook/USBHostKeyboard