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
- 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.