#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
volatile int btn1;
volatile int btn2;
bool enable_debug = false;
bool enable_led = false;
void setup() {
  lcd.begin(16, 2);
  lcd.print("A inceput");
  lcd.setCursor(0, 1);
  lcd.print("din nou");
  delay(1000);
  // The 2 interrupt pins 21 and 20 declared as inputs with
  // pull-up resistors activated
  pinMode(20 , INPUT_PULLUP);
  pinMode(21 , INPUT_PULLUP);
  // Attach ISRs to the interrupts corresponding to pins 21
  // and 20 (INT0 and INT1 respectively)
  attachInterrupt(digitalPinToInterrupt(20), functieUnu, FALLING);
  attachInterrupt(digitalPinToInterrupt(21), functieDoi, FALLING);
}
void loop() {
  
}
// First ISR function
void functieUnu() {
  enable_led = !enable_led;
  if (enable_led) {
    digitalWrite(15, HIGH);
  } else {
    digitalWrite(15, LOW);
  }
}
// Second ISR function
void functieDoi() {
  enable_debug = !enable_debug;
}