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: USBDevice mbed-dev lwip
Fork of USBSerial_HelloWorld by
Revision 4:95c491d36524, committed 2011-11-17
- Comitter:
- samux
- Date:
- Thu Nov 17 12:01:22 2011 +0000
- Parent:
- 3:7d07286a4811
- Child:
- 5:ee94acbf45df
- Commit message:
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 Tue Nov 15 21:12:19 2011 +0000 +++ b/USBDevice.lib Thu Nov 17 12:01:22 2011 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/samux/code/USBDevice/#f9400a831815 +http://mbed.org/users/samux/code/USBDevice/#76071370dd0a
--- a/main.cpp Tue Nov 15 21:12:19 2011 +0000
+++ b/main.cpp Thu Nov 17 12:01:22 2011 +0000
@@ -4,11 +4,13 @@
//Virtual serial port over USB
USBSerial serial;
+Serial pc(USBTX, USBRX);
+
int main(void) {
while(1)
{
- serial.printf("I am a virtual serial port\r\n");
+ serial.print("I am a virtual serial port!\r\n");
wait(1);
}
}
