USB Composite device demo based on USBDevice
Dependencies: USBComposite mbed
Under construction!
main.cpp
- Committer:
- steeven
- Date:
- 2015-05-31
- Revision:
- 1:23aa18cc8f7f
- Parent:
- 0:3b440c0010f7
File content as of revision 1:23aa18cc8f7f:
// Do not remove the include below #include "mbed.h" #include "USBSerial.h" #include "USBComposite.h" /* tested cdc on LPC1768 */ DigitalOut led(LED1); DigitalOut led2(LED2); Serial pc(USBTX, USBRX); //USBComposite usb; //USBSerial us(&usb, false); USBSerial us; int main() { int i = 0; pc.baud(115200); // pc.printf("hello world\n"); us.printf("hello world\n"); while (1) { // led = !led; led2 = !led2; wait(1); // pc.printf("test %d\n", i++); us.printf("test %d\n", i++); } } // Auto Added by "SMeshLink SMeshStudio"