Configuration for MKS TS35 V2.0 working with klipper screen - NamkingWIN/3d_print GitHub Wiki
I have read and followed by this guide from willngton. Unfortunately, this post base on the old OS (raspbian) so it does not work on the new OS (raspberry Pi os) anymore. Some steps will be change from this guide, and I will show you about it.
Lets begin... Prepare your os on sdcard for raspberry pi with update and ready to work!
- The very first step is the wiring for MKS-TS35-V2.0 and raspberry pi. We can do from the this guide
- Edit your /boot/config.txt to enable the display over dtoverlays. This step also same the old guide
$sudo nano /boot/config.txt
- add bellow content to the end and save
hdmi_force_hotplug=1 hdmi_cvt=hdmi_cvt=400 300 60 1 0 0 0 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 dtparam=spi=on dtoverlay=tinylcd35,rotate=270,speed=36000000,touch,touchgpio=23,fps=10
Reboot the raspberry pi and you will see your MKS-TS35 begin working (some lines on boot screen will appear). That is a good news!!! (make sure the wiring is done and right)
- Install all applications for your printer: klipper, moonraker, klipper screen,... (or what ever you want) from kiauh
Reboot raspberry and the wait for a minutes, the klipper screen will loaded.
- But now, the touch maybe work incorrectly. So you can rotate the touch by follow these step
This configuration work well on my screen (rotate 90 degree clockwise)
Section "InputClass" Identifier "libinput touchscreen catchall" MatchIsTouchscreen "on" Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection
Reboot rapberry pi again and check your touch screen.
- Maybe you need to calibrate the touch, this also done by this Touch Screen Configuration - Semi-automated, this will enable touch using ADS7846
Thats all and gook luck!