![]() This will make the pointer much more accurate and easier to use.ġ. Now that we have our LCD touchscreen up and running, the final step in the installation is the calibration of touch control. Here is a short video tutorial showing the steps above: All you need to do is switch the values of the 0 and 1 at the end of this line. Then change the DISPLAY=:0 xinput -set-prop 'ADS7846 Touchscreen' 'Evdev Axis Inversion' 0 1 line in the /etc/X11/xinit/xinitrc file to DISPLAY=:0 xinput -set-prop 'ADS7846 Touchscreen' 'Evdev Axis Inversion' 1 0. To do this, simply enter fbtft_device.rotate=270 in the /boot/cmdline.txt file. You can rotate the screen 90 degrees (as we did in this tutorial) and the power connector will be at the bottom of the screen, but you can also rotate it 270 degrees so that the power connector is at the top of the screen. Change Screen Rotation to Any Orientation If you are using the Raspberry Pi 2 Model B, you will need to complete the calibration steps below before the pointer follows your finger correctly (and make sure that you have enabled startx to load automatically – see step 6 in this article). ![]() Press Ctrl-X then Y to exit nano and save the changes, then enter sudo reboot to reboot the Pi.Īfter the Pi finishes rebooting, you should notice that when you move your finger across the touch screen, the pointer should follow correctly in both axes.
0 Comments
Leave a Reply. |