Rotate Screen

First of all we rotate the display functionality. Therefore we update the config.txt

sudo nano /boot/config.txt

Set the value for „display_rotate“ to „1“, which means 90 degress rotation. A value „2“ would be 180°, „3“ for 270°.

Create calibration file

We need to have a display calibration file. This LCD can be calibrated using a program called xinput_calibrator which can be downloaded from Xinput-calibrator_0.7.5-1_armhf (download it from waveshare website). Extract and copy the software Xinput-calibrator_0.7.5-1_armhf.deb to the Raspbian of your Pi.

Install it with the commands:

sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb

This will add a new Menu item in your Desktop menu. Click the „Menu“ button on the task bar, choose „Preference“ and „Calibrate Touchscreen“. Finish the touch calibration following the prompts. The result need to be saved the the following file:

/ect/X11/xorg.conf.d/99-calibration.conf

Add an option Block to this file like this:

Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"

Install drivers

Make sure you have the latest version of Raspian installed. Otherwise use this to update your system:

sudo apt-get update
sudo apt-get upgrade

Download the drivers LCD-show-180331.tar.gz

  1. Download the Raspbian / Ubuntu Mate image from Raspberry Pi website and extract it on a PC.
  2. Copy the LCD driver to the micro SD card (or copy the driver to the system of Pi using a USB drive).
  3. Append the following lines to the config.txt file which is located in the root of the card:

    max_usb_current=1
    hdmi_group=2
    hdmi_mode=87
    hdmi_cvt 1024 600 60 6 0 0 0
    display_rotate=2

  4. Extract the driver files within /boot/

    tar xzvf /boot/LCD-show-*.tar.gz
    cd LCD-show/
    chmod +x LCD101-1024x600-show
    ./LCD101-1024x600-show

  5. run the screen script to initialise
    ./LCD101-1024x600-show 90
  6. finally reboot the Raspberry Pi

cheers,
Sebastian

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert