forked from goodtft/LCD-show
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lcd driver
- Loading branch information
Showing
34 changed files
with
794 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sudo cp -rf ./usr/modules-HDMI /etc/modules | ||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf | ||
sudo cp ./boot/config-nomal.txt /boot/config.txt | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sudo mkdir /etc/X11/xorg.conf.d | ||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/ | ||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo | ||
sudo cp -rf ./usr/99-calibration.conf-28 /etc/X11/xorg.conf.d/99-calibration.conf | ||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp ./boot/config-28.txt /boot/config.txt | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sudo mkdir /etc/X11/xorg.conf.d | ||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/ | ||
sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo | ||
sudo cp -rf ./usr/99-calibration.conf-32 /etc/X11/xorg.conf.d/99-calibration.conf | ||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp ./boot/config-32.txt /boot/config.txt | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sudo mkdir /etc/X11/xorg.conf.d | ||
sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/ | ||
sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo | ||
sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf | ||
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp ./boot/config-35.txt /boot/config.txt | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sudo cp -rf ./boot/config-397.txt /boot/config.txt | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf | ||
sudo mkdir /etc/X11/xorg.conf.d | ||
sudo cp -rf ./usr/99-calibration.conf-397 /etc/X11/xorg.conf.d/99-calibration.conf | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sudo cp -rf ./boot/config-43.txt /boot/config.txt | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf | ||
sudo mkdir /etc/X11/xorg.conf.d | ||
sudo cp -rf ./usr/99-calibration.conf-43 /etc/X11/xorg.conf.d/99-calibration.conf | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sudo cp -rf ./boot/config-5.txt /boot/config.txt | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf | ||
sudo mkdir /etc/X11/xorg.conf.d | ||
sudo cp -rf ./usr/99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sudo cp -rf ./boot/config-7B-800x480.txt /boot/config.txt | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt | ||
sudo cp ./usr/cmdline.txt /boot/ | ||
sudo cp ./usr/inittab /etc/ | ||
sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
[version] | ||
v1.1 | ||
[Driver installation] | ||
Step1, Install Raspbian official mirror | ||
1)Download Raspbian official mirror:https://www.raspberrypi.org/downloads/ | ||
2)Use��SDFormatter.exe��to Format your TF Card�� | ||
3)Use��Win32DiskImager.exe�� Burning mirror to TF Card�� | ||
Step2, Install LCD Driver | ||
1)Copy ��LCD-show-160701.tar.gz�� to the root directory of raspberry pi��you can copy it directly to TF card after Step1, or use SFTP to remote copy�� | ||
2)Landing Raspberry pi system to user command line (Name:pi,Password:raspberry)��Execute the following command: | ||
cd /boot | ||
sudo tar zxvf LCD-show-160701.tar.gz | ||
cd LCD-show/ | ||
#For 2.8inch RPI LCD excute: | ||
sudo ./LCD28-show | ||
# For 3.2inch RPI LCD excute: | ||
sudo ./LCD32-show | ||
# For 3.5inch RPI LCD excute: | ||
sudo ./LCD35-show | ||
# For 3.97inch RPI LCD excute: | ||
sudo ./LCD397-show | ||
# For 4.3inch RPI LCD excute: | ||
sudo ./LCD43-show | ||
# For 5inch RPI LCD excute: | ||
sudo ./LCD5-show | ||
# For 7inch(B)-800X480 RPI LCD excute: | ||
sudo ./LCD7B-show | ||
# For 7inch(C)-1024X600 RPI LCD excute: | ||
sudo ./LCD7C-show | ||
# If you need to switch back to the traditional HDMI display excute: | ||
Sudo ./LCD-hdmi | ||
|
||
3)Wait a few minutes,the system will restart automaticall , enjoy with your LCD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# For more options and information see | ||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | ||
# Some settings may impact device functionality. See link above for details | ||
|
||
# uncomment if you get no picture on HDMI for a default "safe" mode | ||
#hdmi_safe=1 | ||
|
||
# uncomment this if your display has a black border of unused pixels visible | ||
# and your display can output without overscan | ||
#disable_overscan=1 | ||
|
||
# uncomment the following to adjust overscan. Use positive numbers if console | ||
# goes off screen, and negative if there is too much border | ||
#overscan_left=16 | ||
#overscan_right=16 | ||
#overscan_top=16 | ||
#overscan_bottom=16 | ||
|
||
# uncomment to force a console size. By default it will be display's size minus | ||
# overscan. | ||
#framebuffer_width=1280 | ||
#framebuffer_height=720 | ||
|
||
# uncomment if hdmi display is not detected and composite is being output | ||
hdmi_force_hotplug=1 | ||
|
||
# uncomment to force a specific HDMI mode (this will force VGA) | ||
#hdmi_group=1 | ||
#hdmi_mode=1 | ||
|
||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in | ||
# DMT (computer monitor) modes | ||
#hdmi_drive=2 | ||
|
||
# uncomment to increase signal to HDMI, if you have interference, blanking, or | ||
# no display | ||
#config_hdmi_boost=4 | ||
|
||
# uncomment for composite PAL | ||
#sdtv_mode=2 | ||
|
||
#uncomment to overclock the arm. 700 MHz is the default. | ||
#arm_freq=800 | ||
|
||
# Uncomment some or all of these to enable the optional hardware interfaces | ||
dtparam=i2c_arm=on | ||
#dtparam=i2s=on | ||
dtparam=spi=on | ||
enable_uart=1 | ||
# Uncomment this to enable the lirc-rpi module | ||
#dtoverlay=lirc-rpi | ||
|
||
# Additional overlays and parameters are documented /boot/overlays/README | ||
|
||
# Enable audio (loads snd_bcm2835) | ||
dtparam=audio=on | ||
dtoverlay=tft9341:rotate=90 | ||
dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# For more options and information see | ||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | ||
# Some settings may impact device functionality. See link above for details | ||
|
||
# uncomment if you get no picture on HDMI for a default "safe" mode | ||
#hdmi_safe=1 | ||
|
||
# uncomment this if your display has a black border of unused pixels visible | ||
# and your display can output without overscan | ||
#disable_overscan=1 | ||
|
||
# uncomment the following to adjust overscan. Use positive numbers if console | ||
# goes off screen, and negative if there is too much border | ||
#overscan_left=16 | ||
#overscan_right=16 | ||
#overscan_top=16 | ||
#overscan_bottom=16 | ||
|
||
# uncomment to force a console size. By default it will be display's size minus | ||
# overscan. | ||
#framebuffer_width=1280 | ||
#framebuffer_height=720 | ||
|
||
# uncomment if hdmi display is not detected and composite is being output | ||
hdmi_force_hotplug=1 | ||
|
||
# uncomment to force a specific HDMI mode (this will force VGA) | ||
#hdmi_group=1 | ||
#hdmi_mode=1 | ||
|
||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in | ||
# DMT (computer monitor) modes | ||
#hdmi_drive=2 | ||
|
||
# uncomment to increase signal to HDMI, if you have interference, blanking, or | ||
# no display | ||
#config_hdmi_boost=4 | ||
|
||
# uncomment for composite PAL | ||
#sdtv_mode=2 | ||
|
||
#uncomment to overclock the arm. 700 MHz is the default. | ||
#arm_freq=800 | ||
|
||
# Uncomment some or all of these to enable the optional hardware interfaces | ||
dtparam=i2c_arm=on | ||
#dtparam=i2s=on | ||
dtparam=spi=on | ||
enable_uart=1 | ||
# Uncomment this to enable the lirc-rpi module | ||
#dtoverlay=lirc-rpi | ||
|
||
# Additional overlays and parameters are documented /boot/overlays/README | ||
|
||
# Enable audio (loads snd_bcm2835) | ||
dtparam=audio=on | ||
dtoverlay=tft9341:rotate=270 | ||
dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# For more options and information see | ||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | ||
# Some settings may impact device functionality. See link above for details | ||
|
||
# uncomment if you get no picture on HDMI for a default "safe" mode | ||
#hdmi_safe=1 | ||
|
||
# uncomment this if your display has a black border of unused pixels visible | ||
# and your display can output without overscan | ||
#disable_overscan=1 | ||
|
||
# uncomment the following to adjust overscan. Use positive numbers if console | ||
# goes off screen, and negative if there is too much border | ||
#overscan_left=16 | ||
#overscan_right=16 | ||
#overscan_top=16 | ||
#overscan_bottom=16 | ||
|
||
# uncomment to force a console size. By default it will be display's size minus | ||
# overscan. | ||
#framebuffer_width=1280 | ||
#framebuffer_height=720 | ||
|
||
# uncomment if hdmi display is not detected and composite is being output | ||
hdmi_force_hotplug=1 | ||
|
||
# uncomment to force a specific HDMI mode (this will force VGA) | ||
#hdmi_group=1 | ||
#hdmi_mode=1 | ||
|
||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in | ||
# DMT (computer monitor) modes | ||
#hdmi_drive=2 | ||
|
||
# uncomment to increase signal to HDMI, if you have interference, blanking, or | ||
# no display | ||
#config_hdmi_boost=4 | ||
|
||
# uncomment for composite PAL | ||
#sdtv_mode=2 | ||
|
||
#uncomment to overclock the arm. 700 MHz is the default. | ||
#arm_freq=800 | ||
|
||
# Uncomment some or all of these to enable the optional hardware interfaces | ||
dtparam=i2c_arm=on | ||
#dtparam=i2s=on | ||
dtparam=spi=on | ||
enable_uart=1 | ||
# Uncomment this to enable the lirc-rpi module | ||
#dtoverlay=lirc-rpi | ||
|
||
# Additional overlays and parameters are documented /boot/overlays/README | ||
|
||
# Enable audio (loads snd_bcm2835) | ||
dtparam=audio=on | ||
dtoverlay=tft35a | ||
dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# For more options and information see | ||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md | ||
# Some settings may impact device functionality. See link above for details | ||
|
||
# uncomment if you get no picture on HDMI for a default "safe" mode | ||
#hdmi_safe=1 | ||
|
||
# uncomment this if your display has a black border of unused pixels visible | ||
# and your display can output without overscan | ||
#disable_overscan=1 | ||
|
||
# uncomment the following to adjust overscan. Use positive numbers if console | ||
# goes off screen, and negative if there is too much border | ||
#overscan_left=16 | ||
#overscan_right=16 | ||
#overscan_top=16 | ||
#overscan_bottom=16 | ||
|
||
# uncomment to force a console size. By default it will be display's size minus | ||
# overscan. | ||
#framebuffer_width=1280 | ||
#framebuffer_height=720 | ||
|
||
# uncomment if hdmi display is not detected and composite is being output | ||
hdmi_force_hotplug=1 | ||
|
||
# uncomment to force a specific HDMI mode (this will force VGA) | ||
#hdmi_group=1 | ||
#hdmi_mode=1 | ||
|
||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in | ||
# DMT (computer monitor) modes | ||
#hdmi_drive=2 | ||
|
||
# uncomment to increase signal to HDMI, if you have interference, blanking, or | ||
# no display | ||
#config_hdmi_boost=4 | ||
|
||
# uncomment for composite PAL | ||
#sdtv_mode=2 | ||
|
||
#uncomment to overclock the arm. 700 MHz is the default. | ||
#arm_freq=800 | ||
|
||
# Uncomment some or all of these to enable the optional hardware interfaces | ||
dtparam=i2c_arm=on | ||
#dtparam=i2s=on | ||
dtparam=spi=on | ||
enable_uart=1 | ||
# Uncomment this to enable the lirc-rpi module | ||
#dtoverlay=lirc-rpi | ||
|
||
# Additional overlays and parameters are documented /boot/overlays/README | ||
|
||
# Enable audio (loads snd_bcm2835) | ||
dtparam=audio=on | ||
display_rotate=3 | ||
max_usb_current=1 | ||
hdmi_group=2 | ||
hdmi_mode=1 | ||
hdmi_mode=87 | ||
hdmi_cvt 480 800 60 6 0 0 0 | ||
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 |
Oops, something went wrong.