From: Bernhard Tittelbach Date: Tue, 5 Oct 2010 22:18:03 +0000 (+0000) Subject: OK for led, brighter led, shorter sample duration for movementsensor X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=718bae89f5b56b55b0ad53094e082e02c248a4cd;p=svn42.git OK for led, brighter led, shorter sample duration for movementsensor --- diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index b276b8b..10d8705 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -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')