Skip to content

Instantly share code, notes, and snippets.

@Jerrylum
Last active August 12, 2022 08:18
Show Gist options
  • Save Jerrylum/014e40547ef97395cd92e45aa7b09fc2 to your computer and use it in GitHub Desktop.
Save Jerrylum/014e40547ef97395cd92e45aa7b09fc2 to your computer and use it in GitHub Desktop.
How to setup your raspi with a 7inch DSI LCD screen
  1. A monitor, micro HDMI adpater, HDMI cables

  2. Follow the instruction on 7inch DSI LCD (C) - Waveshare Wiki
    https://www.waveshare.net/wiki/7inch_DSI_LCD_(C)

cd ~
git clone https://github.com/waveshare/7inch-DSI-LCD-C.git
cd 7inch-DSI-LCD-C
cd 32
uname -a
cd <version>
sudo ./WS_7inchDSI1024x600_MAIN.sh
sudo reboot
  1. Rotate monitor
    image Go to Preferences->Screen Configuration->Configure->Screens->DSI-1->Orientation then click Inverted. Click tick to apply the change.

  2. Rotate touch screen
    image

sudo nano /boot/config.txt
# Add this line at the end of the file
# dtoverlay=WS_7inchDSI1024x600_Touch,invertedx,invertedy
  1. Install useful tools
    (After this step, this terminal will show up every time you start the pi.) image
git clone https://github.com/Jerrylum/raspi-scripts ~/scripts
cat ~/scripts/show-ip.sh

# Follow the instruction in the file
  1. Final configuration
    Go to Preferences>Raspberry Pi Configuration, set computer's name, enable SSH and VNC in the Interfaces section.
    image image

  2. Follow the instruction How to program your robot via remote SHH. https://gist.github.com/Jerrylum/2720f404269a63f2a13a51fd637945ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment