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
Diff: main.cpp
- Revision:
- 6:aef06cd11ce4
- Parent:
- 5:ee94acbf45df
- Child:
- 7:5e693654d5b4
--- a/main.cpp Thu Nov 17 16:36:10 2011 +0000
+++ b/main.cpp Wed Nov 30 11:17:49 2011 +0000
@@ -1,16 +1,14 @@
-#include "mbed.h"
-#include "USBSerial.h"
-
-//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");
- wait(1);
- }
-}
+#include "mbed.h"
+#include "USBSerial.h"
+
+//Virtual serial port over USB
+USBSerial serial;
+
+int main(void) {
+
+ while(1)
+ {
+ serial.printf("I am a virtual serial port!\r\n");
+ wait(0.5);
+ }
+}
