Working PIR sensor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
vazbyte
Date:
Thu Jan 31 17:21:47 2019 +0000
Parent:
1:f6f524d2dc18
Commit message:
working

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jan 31 17:19:30 2019 +0000
+++ b/main.cpp	Thu Jan 31 17:21:47 2019 +0000
@@ -8,10 +8,10 @@
     
     while(1) {
         if (!alarm){
-            led1=1;
+            led1 = 1;
             wait(2);
         }
         else
-            led1=0;
+            led1 = 0;
     }
 }
\ No newline at end of file