Closed jbeima closed 3 years ago
SOLVED!
I had cs/sid swapped.
I can CONFIRM the following works:
BTT GTR - BTT TFT70V3
########################################
# EXP1 / EXP2 pins - GTR Board
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=PC11, EXP1_3=PC10, EXP1_5=PG8, EXP1_7=PG6, EXP1_9=<GND>,
EXP1_2=PA15, EXP1_4=PA8, EXP1_6=PG7, EXP1_8=PG5, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_3=PD10, EXP2_5=PH10, EXP2_7=PB10, EXP2_9=<GND>,
EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=<NC>
######################################################################
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
######################################################################
[display]
lcd_type: st7920
cs_pin: EXP1_4
sclk_pin: EXP1_5
sid_pin: EXP1_3
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8
[output_pin beeper]
pin: EXP1_1
I will add a photo shortly.
Thanks for posting your working config, I will add it to the wiki.
Regarding the GTR issue: some mainboards do not reset the display when restarted by Klipper. This causes the screen to not work any more as the display data is not recognized correctly due to bit shifts. This is why I developed the "emulated_st7920" Klipper display driver which resets the display properly when Klipper is restarted. Since then I never had any issues with Klipper and the display anymore.
I would be happy to try the emulated_st7920, but I would need to confirm the settings. I do believe you need one more?
When I tried this it did not work:
[display]
lcd_type: emulated_st7920
en_pin: EXP1_3
spi_software_sclk_pin: EXP1_5
spi_software_mosi_pin: EXP1_4
spi_software_miso_pin: EXP1_6
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
I am happy to test variants of it if you may have any suggestions.
Could the en_pin and mosi_pin here also need to be swapped?
There is an entry in the wiki on how to convert the config to the emulated driver. If the stock display driver works there is no need to use the emulated driver.
Now I noticed you have another challenge open in regards to the GTR board, so I am wondering if it may be related to that and not the screen. I did notice some of the GTR pinouts had been confused... So I have more information for this one...
From Marlin -> pinouts -> GTR:
The TFT70v3 does work under Marlin with these settings.
From the Klipper GTR Board Config File:
########################################
EXP1 / EXP2 pins - GTR Board
########################################
[board_pins] aliases:
EXP1 header
######################################################################
"RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
######################################################################
Display Definitions & Mappings
display_group: _default_16x4
cs_pin: LCD_PINS_ENABLE / EXP1_3 / PC10
sclk_pin: LCD_PINS_D4 / EXP1_5 / PG8
sid_pin: LCD_PINS_RS / EXP1_4 / PA8
encoder_pins: BTN_EN1, BTN_EN2 / EXP2_3, EXP2_5 / PD10, PH10
click_pin: BTN_ENC / EXP1_2 / PA15
spi_software_sclk_pin: [SCK??|LCD_PINS_D4] / EXP2_2 / PB13 (SCK???)
spi_software_mosi_pin: MOSI / EXP2_6 / PB15
spi_software_miso_pin: MISO / EXP2_1 / PB14
######################
Tried & Did Not Work
#######################
[display] lcd_type: st7920
display_group: _default_16x4
cs_pin: EXP1_3 sclk_pin: EXP1_5 sid_pin: EXP1_4 encoder_pins: ^EXP2_3, ^EXP2_5 click_pin: ^!EXP1_2
kill_pin: ^!EXP2_8
[display]
lcd_type: emulated_st7920
display_group: _default_16x4
en_pin: EXP1_3
spi_software_sclk_pin: EXP1_5
spi_software_mosi_pin: EXP1_4
spi_software_miso_pin: EXP1_6
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
[display]
lcd_type: emulated_st7920
display_group: _default_16x4
en_pin: EXP1_3
spi_software_sclk_pin: EXP2_2
spi_software_mosi_pin: EXP2_6
spi_software_miso_pin: EXP2_1
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
######################
Yet To Try
#######################
[display]
lcd_type: emulated_st7920
display_group: _default_16x4
en_pin: EXP1_3
spi_software_sclk_pin: EXP1_5
spi_software_mosi_pin: EXP2_6
spi_software_miso_pin: EXP2_1
encoder_pins: ^EXP2_3, ^EXP2_5
click_pin: ^!EXP1_2
NOTES: