Using mbed to simulate simple keyboard press over USB.

26 Oct 2019

Hello, I want to use mbed to simulate keyboard keys by USB.

I imported helloworld from the handbook but it does not work. I noticed that as soon as I make a USBKeyboard object the program does not work.


As soon as I comment out 'USBKeyboard keyboard;' the LED in this simple program will blink and if I put it back it will not work. I have tried this on both my LPC1768 and NUCLEO RE446 boards.

08 Nov 2019

Hi Filip,

What I guess is that you don't connect to the correct usb pin, the on board usb connector is for interface chip not for target chip. Would you refer to this wire reference and try it again?

Regards, Desmond