   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();


const int ledPin = 13;

int lowRed   = 22;
int lowGreen = 5;
int lowBlue  = 0;

int highRed  = 255;

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

void checkIr(){
  boolean irState = digitalRead(irPin);
  digitalWrite(ledPin, irState);
  if(irState){
    onUntilMillis = millis() + irTime;
  }
}

void dim1(){
