#define PWM_ORDER 10
#define PWM_HALF 5
-#define LIGHT_THRESHOLD 800
-#define TIME_ON 160
+#define LIGHT_THRESHOLD 900
+#define TIME_ON 320
#ifdef ADCSC /* Let us hope that this is a "new" model */
# define BIT_RL BIT0
P2DIR &= ~(BIT4|BIT5); // PIR Sensors
P2OUT &= ~(BIT4|BIT5); // Pull down
- P2REN |= BIT4|BIT5; // Enable pull-down
+ P2REN &= ~(BIT4|BIT5); // Disable pull
P2IES &= ~(BIT4|BIT5); // INT on Lo->Hi edge
P2IE |= BIT4|BIT5; // INT enable