Simple wait example
Revision 0:7d249aa3d880, committed 2017-01-19
- Comitter:
- mab5449
- Date:
- Thu Jan 19 14:24:48 2017 -0600
- Child:
- 1:4f0543415053
- Commit message:
- Initial commit. Ported code snippets to mbed OS 5 projects
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Jan 19 14:24:48 2017 -0600
@@ -0,0 +1,13 @@
+
+ #include "mbed.h"
+
+ DigitalOut heartbeat(LED1);
+
+ int main() {
+ while (1) {
+ heartbeat = 1;
+ wait(0.5);
+ heartbeat = 0;
+ wait(0.5);
+ }
+ }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Jan 19 14:24:48 2017 -0600 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#34c1facf42a174f47fdf9002cd8c6bf10ac41744
mbed_example