#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
#define pin_button 7
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
pinMode(pin_button, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(2, 1);
lcd.print(digitalRead(pin_button));
}