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: mbed
Diff: main.cpp
- Revision:
- 9:b1344ca3497d
- Parent:
- 8:34cc66421054
- Child:
- 10:f7a48cc24892
--- a/main.cpp Wed Jun 08 09:14:56 2016 +0000
+++ b/main.cpp Wed Jun 08 10:07:11 2016 +0000
@@ -19,6 +19,7 @@
led1 = !led1;
while(dev.readable()) {
pc.putc(dev.getc());
+ //wait_us(1);
}
}
// subroutine to service the serial interrupt on the pc connection
@@ -54,8 +55,9 @@
dev.attach(&dev_recv, Serial::RxIrq);
-
+int i=0;
while(1) {
- sleep(); // so for KL25z this is probably wrong.... but not yet tested 07-06-2016
+
+ (i++)%10; // THIS USED TO BE A SLEEP COMMAND BUT IT WAS CAUSING SOME TROUBLE.
}
}