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.
Fork of USBSerial_HelloWorld by
Revision 8:90f8322a65f8, committed 2012-12-20
- Comitter:
- samux
- Date:
- Thu Dec 20 17:09:19 2012 +0000
- Parent:
- 7:5e693654d5b4
- Child:
- 9:d88699a0905a
- Commit message:
- use latest USBDevice library
Changed in this revision
| USBDevice.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice.lib Sun Oct 14 13:03:13 2012 +0000 +++ b/USBDevice.lib Thu Dec 20 17:09:19 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/USBDevice/#6d85e04fb59f +http://mbed.org/users/mbed_official/code/USBDevice/#d0945750af57
--- a/main.cpp Sun Oct 14 13:03:13 2012 +0000
+++ b/main.cpp Thu Dec 20 17:09:19 2012 +0000
@@ -3,12 +3,15 @@
//Virtual serial port over USB
USBSerial serial;
+DigitalOut l1(LED1);
int main(void) {
-
+ int i = 0;
+
while(1)
{
- serial.printf("I am a virtual serial port\r\n");
- wait(1);
+ serial.printf("I am a virtual serial port: %d\r\n", i++);
+ wait(0.1);
+ l1 = !l1;
}
}
\ No newline at end of file
