OK for led, brighter led, shorter sample duration for movementsensor
authorBernhard Tittelbach <xro@realraum.at>
Tue, 5 Oct 2010 22:18:03 +0000 (22:18 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Tue, 5 Oct 2010 22:18:03 +0000 (22:18 +0000)
rf433ctl/rf433ctl.pde

index b276b8b..10d8705 100644 (file)
@@ -15,8 +15,8 @@
 #define BLUELED_PWM_PIN 11
 #define PHOTO_ANALOGPIN 0
 //movement is reported if during IR_SAMPLE_DURATION at least IR_TRESHOLD ir signals are detectd
-#define IR_SAMPLE_DURATION 12000
-#define IR_TRESHOLD 8000
+#define IR_SAMPLE_DURATION 8000
+#define IR_TRESHOLD 6000
 //duration PanicButton needs to be pressed before status change occurs (i.e. for two PanicButton Reports, the buttons needs to be pressed 1000 cycles, releases 1000 cycles and again pressed 1000 cycles)
 #define PB_TRESHOLD 1000
 #define PHOTO_SAMPLE_INTERVAL 4000
@@ -555,7 +555,11 @@ void loop()
       printLightLevel();
     }
     else if (command == '^')
-      flash_led(1, 1, 2, 1, 0);
+    {
+      //flash_led(1, 1, 2, 1, 0);
+      flash_led(1, 1, 1, 1, 0);
+      Serial.println("Ok");
+    }
     else if (command == '0')
       send_yamaha_ir_signal(YAMAHA_POWER_OFF);
     else if (command == '1')