 void scan_item() {
   delay(50);
   // Setting red filtered photodiodes to be read
-  digitalWrite(S2,LOW);
-  digitalWrite(S3,LOW);
+  //digitalWrite(S2,LOW);
+  //digitalWrite(S3,LOW);
+  PORTB = B00000010;
   // Reading the output frequency
   f_RED = pulseIn(scanSensor, LOW);
   delay(50);
   // Setting Green filtered photodiodes to be read
-  digitalWrite(S2,HIGH);
-  digitalWrite(S3,HIGH);
+  //digitalWrite(S2,HIGH);
+  //digitalWrite(S3,HIGH);
+  PORTB = B00011010;
   // Reading the output frequency
   f_GREEN = pulseIn(scanSensor, LOW);
   delay(50);
   // Setting Blue filtered photodiodes to be read
-  digitalWrite(S2,LOW);
-  digitalWrite(S3,HIGH);
+  //digitalWrite(S2,LOW);
+  //digitalWrite(S3,HIGH);
+  PORTB = B00010010;
   // Reading the output frequency
   f_BLUE = pulseIn(scanSensor, LOW);
   delay(50);

Button::Button(byte pin, byte timeButton) {
  _pin= pin;
  _timeButton= timeButton;
  pinMode(_pin, INPUT);  
}



  delay(standardDelay);

  // Setting frequency-scaling to 20%
  //digitalWrite(S0, HIGH);
  //digitalWrite(S1, LOW);
  PORTB = B00000010;

  //Initialize LCD
  lcd.init();
