]> Zhao Yanbai Git Server - acecode.git/commitdiff
...
authoracevest <zhaoyanbai@126.com>
Wed, 3 Dec 2014 14:14:13 +0000 (22:14 +0800)
committeracevest <zhaoyanbai@126.com>
Wed, 3 Dec 2014 14:14:13 +0000 (22:14 +0800)
arduino/Sensors/Sensors.ino

index 1a4db407ab3b77cbd66168502042f19966c0ae0b..5b6791ebb5977589e76f6cc2e28bb48c9a6088b6 100644 (file)
@@ -18,6 +18,11 @@ void loop() {
   
   int hb = analogRead(2);  // Human Body 
   
+  if(hb < 10)
+  {
+    hb = 0;
+  }
+  
   digitalWrite(ledPin, hb > 0 ? HIGH : LOW);
 
   delay(100);