X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=rf433ctl%2Frf433ctl.pde;h=a4db48a23cfeca5de87515cf8e8f99b96441e50d;hb=270235c90678f8b12127449b1b72641394a688ff;hp=9878159516bb9fc9892541a83962d57dd043768e;hpb=206ca77952614d9bfa0925bd3c9287bf88459cae;p=svn42.git diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index 9878159..a4db48a 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -11,6 +11,7 @@ #define ONE_WIRE_PIN 8 #define PANIC_BUTTON_PIN 7 #define BLUELED_PWM_PIN 6 +#define BLUELED2_PWM_PIN 10 #define PHOTO_ANALOGPIN 0 //movement is reported if during IR_SAMPLE_DURATION at least IR_TRESHOLD ir signals are detectd #define IR_SAMPLE_DURATION 15000 @@ -272,7 +273,8 @@ void calculate_led_level(unsigned int pwm_pin) return; flash_led_time_--; int c = abs(sin(float(flash_led_time_) / 100.0)) * flash_led_brightness_; - analogWrite(pwm_pin,c); + analogWrite(BLUELED_PWM_PIN,c); + analogWrite(BLUELED2_PWM_PIN,c); } void flash_led(unsigned int times, unsigned int brightness_divisor, unsigned int delay_divisor)