Nora Vazbyte
/
PIR_Sensor_HelloWorld
Working PIR sensor
Revision 2:7844d0880ba7, committed 2019-01-31
- 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