ST7920 LCD with push buttons

I am trying to add ST7920 LCD (used in reprap discount panel) but instead of rotory encoder i want push buttons. I configured the config file but buttons are not working for me.

panel.lcd reprap_discount_glcd #
panel.spi_channel 0 # spi channel to use ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin 0.16 # spi chip select ; GLCD EXP1 Pin 4
#panel.encoder_a_pin 3.25!^ # encoder pin ; GLCD EXP2 Pin 3
#panel.encoder_b_pin 3.26!^ # encoder pin ; GLCD EXP2 Pin 5
#panel.click_button_pin 1.30!^ # click button ; GLCD EXP1 Pin 2
panel.buzz_pin 3.25 # pin for buzzer ; GLCD EXP1 Pin 1
#panel.back_button_pin 2.11!^ # back button ; GLCD EXP2 Pin 8

  1. pins used with other panels

panel.up_button_pin 1.31!^ #
panel.down_button_pin 1.30!^ #
panel.click_button_pin 2.11!^ #

I am able to get encoder running but when i comment pins for encoder and enable push buttons, they don’t work.

Please help.

Imported from wikidot

Can you show us the config that works and the one that does not ?

Thanks.

the glcd panel does not support up down buttons as it does not have any. The viki panel had them but that is a different panel.