infrared sensor_demo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
rozendhyan
Date:
Thu Aug 24 17:03:44 2017 +0000
Commit message:
infrared sensor demo

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
diff -r 000000000000 -r 0cbb6700ea6a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Aug 24 17:03:44 2017 +0000
@@ -0,0 +1,14 @@
+
+#include "mbed.h"
+ 
+DigitalIn enable(D7);
+DigitalOut led(LED1);
+ 
+int main() {
+    while(1) {
+        if(enable) {
+            led = !led;
+        }
+        wait(0.25);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 0cbb6700ea6a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Aug 24 17:03:44 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/e2bfab296f20
\ No newline at end of file