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

  delay(standardDelay);

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

  //Initialize LCD
  lcd.init();


//Method from class Button to perform digital debouncing
void Button::filterAvarage() {
  //if (flagPress != !digitalRead(_pin) ) {
  if (flagPress != !bitRead(PIND, _pin)) {  
    if ( _buttonCount != 0 ) _buttonCount--;
    }
  else {
