Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: USBComposite mbed
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"