Creating a project about PriSensor for TT_Mxx

Files at this revision

API Documentation at this revision

Comitter:
ThunderSoft
Date:
Wed May 15 13:13:42 2019 +0000
Parent:
2:4b5ebf838a40
Commit message:
Cancel delay.

Changed in this revision

PirSensor/PirSensor.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4b5ebf838a40 -r 65b6e5b2be31 PirSensor/PirSensor.cpp
--- a/PirSensor/PirSensor.cpp	Fri Apr 26 09:28:51 2019 +0000
+++ b/PirSensor/PirSensor.cpp	Wed May 15 13:13:42 2019 +0000
@@ -3,7 +3,7 @@
 
 
 #if defined(__TT_M4G9__)
-#define DEFAULT_DOR_PIN PL0
+#define DEFAULT_DOR_PIN PK1
 #endif
 
 
diff -r 4b5ebf838a40 -r 65b6e5b2be31 main.cpp
--- a/main.cpp	Fri Apr 26 09:28:51 2019 +0000
+++ b/main.cpp	Wed May 15 13:13:42 2019 +0000
@@ -19,9 +19,7 @@
 
 static void pirHandle()
 {
-    testLed = 1;
-    wait_ms(5000);
-    testLed = 0;
+    testLed = !testLed;
 }
 
 int main()