   pinMode(greenPin, OUTPUT); 
   pinMode(bluePin, OUTPUT); 
   pinMode(ledPin, OUTPUT); 
+  pinMode(irPin, INPUT); 
 
   stripColor(0,0,0);
 }
 
 void loop() {
+    checkIr();
+    
+    if (millis()<onUntilMillis){
+      dimLow(1);
+    } else {
+      dimLow(0);
+    }
+    
+    return;
+  
+    digitalWrite(ledPin, digitalRead(irPin));
+    return;
+  
     dimLow(0);
     waitForTouch();
     dim1();

  digitalWrite(ledPin,HIGH);
  while(capsense.capacitiveSensor(30) < 10000) { };
  digitalWrite(ledPin,LOW);
}

void dim1(){


const int capsens_signal_pin = 4;
const int capsens_sense_pin = 3;

// 10M resistor between pins, add 1n4148 from sense to 5V and 10k from sense to toucharea
CapacitiveSensor capsense = CapacitiveSensor(capsens_signal_pin,capsens_sense_pin);
