Joystick Button

here you have it

void loop()
{
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  
  buttonState = digitalRead(buttonPin);
    if (buttonState == HIGH) {
    Serial.println("not pressed");
    lcd.print(1);
    delay(10);
  }
  else {
    Serial.println("PRESSED!");
    lcd.print(2);
    delay(10);
  }