Can't initiate two devices on EXT USB

17 Jun 2012

Is there any way to use USBSerial with mouse_keyboard on EXT pins usb connection also? when i put both in the cpp the last defined device is used

#include "mbed.h"
#include "USBMouseKeyboard.h"
#include "USBSerial.h"

USBMouseKeyboard key_mouse;
USBSerial serial;

But there is a problem! I Can't use BOTH??, it will only show the one that is defined last which is USBSerial serial;

If i put (USBMouseKeyboard key_mouse;) Bellow (USBSerial serial;) my computer will see the keyboard and mouse but not the serial port

If i put (USBSerial serial;) Bellow (USBMouseKeyboard key_mouse;) my computer will see the serial port but not the keyboard and mouse

Is there a way to use both in the same connection? Please respond promptly to this query!