Experiment 1 from "Hacker's workbook"

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
artemlevenkov
Date:
Wed Sep 17 10:32:14 2014 +0000
Parent:
0:1935c10c4411
Commit message:
Experiment 1 done.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Sep 17 10:28:15 2014 +0000
+++ b/main.cpp	Wed Sep 17 10:32:14 2014 +0000
@@ -1,2 +1,17 @@
+#include "mbed.h"
+
+DigitalOut pin(D13);
+
 int main()
-{}
\ No newline at end of file
+{
+    while(1)
+    {
+        pin = true;
+        
+        wait(0.1);
+        
+        pin = false;
+        
+        wait(0.9);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Sep 17 10:32:14 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file