diff --git a/LCD28-show b/LCD28-show index 60a9d88..5689829 100644 --- a/LCD28-show +++ b/LCD28-show @@ -1,4 +1,5 @@ -sudo mkdir -p /etc/X11/xorg.conf.d +#!/bin/bash +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 @@ -6,4 +7,23 @@ 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 +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi sudo reboot diff --git a/LCD32-show b/LCD32-show index 8ac27ae..78b46cb 100644 --- a/LCD32-show +++ b/LCD32-show @@ -1,4 +1,5 @@ -sudo mkdir -p /etc/X11/xorg.conf.d +#!/bin/bash +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 @@ -6,4 +7,23 @@ 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 +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi sudo reboot diff --git a/LCD35-show b/LCD35-show index cf71e1f..2df27ab 100644 --- a/LCD35-show +++ b/LCD35-show @@ -1,4 +1,5 @@ -sudo mkdir -p /etc/X11/xorg.conf.d +#!/bin/bash +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 @@ -6,4 +7,23 @@ 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 +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi sudo reboot diff --git a/LCD35DPI-show b/LCD35DPI-show new file mode 100644 index 0000000..3c489da --- /dev/null +++ b/LCD35DPI-show @@ -0,0 +1,31 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35DPI.txt /boot/config.txt +sudo cp ./usr/bcm2709-rpi-2-b.dtb /boot/ +sudo cp ./usr/bcm2710-rpi-3-b.dtb /boot/ +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/qddpi24.dtb /boot/overlays/ +sudo cp ./usr/qddpi24.dtb /boot/overlays/qddpi24.dtbo +sudo cp ./usr/inittab /etc/ +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo mkdir -p /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi +sudo reboot diff --git a/LCD35H_480_320-show b/LCD35H_480_320-show new file mode 100644 index 0000000..b098bb4 --- /dev/null +++ b/LCD35H_480_320-show @@ -0,0 +1,27 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35-480X320.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 -p /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi +sudo reboot \ No newline at end of file diff --git a/LCD35H_600_400-show b/LCD35H_600_400-show new file mode 100644 index 0000000..88c2bbe --- /dev/null +++ b/LCD35H_600_400-show @@ -0,0 +1,27 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35-600X400.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 -p /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi +sudo reboot diff --git a/LCD35H_720_480-show b/LCD35H_720_480-show new file mode 100644 index 0000000..9be86ad --- /dev/null +++ b/LCD35H_720_480-show @@ -0,0 +1,27 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35-720X480.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 -p /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi +sudo reboot diff --git a/LCD35H_810_540-show b/LCD35H_810_540-show new file mode 100644 index 0000000..78665c5 --- /dev/null +++ b/LCD35H_810_540-show @@ -0,0 +1,27 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35-810X540.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 -p /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi +sudo reboot diff --git a/LCD35H_960_640-show b/LCD35H_960_640-show new file mode 100644 index 0000000..3c84b7e --- /dev/null +++ b/LCD35H_960_640-show @@ -0,0 +1,27 @@ +#!/bin/bash +sudo cp -rf ./boot/config-35-960X640.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 -p /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-3508 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi +sudo reboot diff --git a/LCD397-show b/LCD397-show index 2da30e4..2aec81a 100644 --- a/LCD397-show +++ b/LCD397-show @@ -1,7 +1,27 @@ +#!/bin/bash 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 -p /etc/X11/xorg.conf.d +sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./usr/99-calibration.conf-397 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi sudo reboot diff --git a/LCD43-show b/LCD43-show index 2b0b701..1a31781 100644 --- a/LCD43-show +++ b/LCD43-show @@ -1,7 +1,27 @@ +#!/bin/bash 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 -p /etc/X11/xorg.conf.d +sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./usr/99-calibration.conf-43 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi sudo reboot diff --git a/LCD5-show b/LCD5-show index 5a7ab7a..e095fbe 100644 --- a/LCD5-show +++ b/LCD5-show @@ -1,7 +1,27 @@ +#!/bin/bash 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 -p /etc/X11/xorg.conf.d +sudo mkdir /etc/X11/xorg.conf.d sudo cp -rf ./usr/99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf +nodeplatform=`uname -n` +kernel=`uname -r` +version=`uname -v` +if test "$nodeplatform" = "raspberrypi";then +echo "this is raspberrypi kernel" +version=${version%% *} +version=${version#*#} +echo $version +if test $version -lt 970;then +echo "reboot" +else +echo "need to update touch configuration" +sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb +sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf +echo "reboot" +fi +else +echo "this is not raspberrypi kernel, no need to update touch configure, reboot" +fi sudo reboot diff --git a/ReadMe.txt b/ReadMe.txt new file mode 100644 index 0000000..b15cd03 --- /dev/null +++ b/ReadMe.txt @@ -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. diff --git a/boot/config-35-480X320.txt b/boot/config-35-480X320.txt new file mode 100644 index 0000000..7333be5 --- /dev/null +++ b/boot/config-35-480X320.txt @@ -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 + +hdmi_drive=2 +hdmi_force_hotplug=1 +hdmi_group=2 +hdmi_mode=87 +hdmi_cvt 480 320 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 diff --git a/boot/config-35-600X400.txt b/boot/config-35-600X400.txt new file mode 100644 index 0000000..98b60ec --- /dev/null +++ b/boot/config-35-600X400.txt @@ -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 + +hdmi_drive=2 +hdmi_force_hotplug=1 +hdmi_group=2 +hdmi_mode=87 +hdmi_cvt 600 400 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 diff --git a/boot/config-35-720X480.txt b/boot/config-35-720X480.txt new file mode 100644 index 0000000..4eb951c --- /dev/null +++ b/boot/config-35-720X480.txt @@ -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 + +hdmi_drive=2 +hdmi_force_hotplug=1 +hdmi_group=2 +hdmi_mode=87 +hdmi_cvt 720 480 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 diff --git a/boot/config-35-810X540.txt b/boot/config-35-810X540.txt new file mode 100644 index 0000000..a455caf --- /dev/null +++ b/boot/config-35-810X540.txt @@ -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 + +hdmi_drive=2 +hdmi_force_hotplug=1 +hdmi_group=2 +hdmi_mode=87 +hdmi_cvt 810 540 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 diff --git a/boot/config-35-960X640.txt b/boot/config-35-960X640.txt new file mode 100644 index 0000000..83ac695 --- /dev/null +++ b/boot/config-35-960X640.txt @@ -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 + +hdmi_drive=2 +hdmi_force_hotplug=1 +hdmi_group=2 +hdmi_mode=87 +hdmi_cvt 960 640 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 diff --git a/boot/config-35.txt b/boot/config-35.txt index e234457..16f27d3 100644 --- a/boot/config-35.txt +++ b/boot/config-35.txt @@ -54,5 +54,5 @@ enable_uart=1 # Enable audio (loads snd_bcm2835) dtparam=audio=on -dtoverlay=tft35a:rotate=90 +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 diff --git a/boot/config-35DPI.txt b/boot/config-35DPI.txt new file mode 100644 index 0000000..0f7f125 --- /dev/null +++ b/boot/config-35DPI.txt @@ -0,0 +1,73 @@ +# 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=1 +dtoverlay=qddpi24 +overscan_left=0 +overscan_right=0 +overscan_top=0 +overscan_bottom=0 +framebuffer_width=480 +framebuffer_height=320 +enable_dpi_lcd=1 +display_default_lcd=1 +dpi_group=2 +dpi_mode=87 +dpi_output_format=0x07f003 +hdmi_timings=321 0 28 18 28 480 0 2 2 4 0 0 0 60 0 32000000 6 + +dtoverlay=ads7846,cs=1,penirq=18,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-43.txt b/boot/config-43.txt index d6140f8..7b6d5c6 100644 --- a/boot/config-43.txt +++ b/boot/config-43.txt @@ -56,7 +56,7 @@ enable_uart=1 dtparam=audio=on max_usb_current=1 display_rotate=0 -hdmi_drive=1 +max_usb_current=1 hdmi_group=2 hdmi_mode=87 hdmi_timings=480 0 1 41 2 272 0 2 10 2 0 0 0 60 0 9000000 3 diff --git a/boot/config-5.txt b/boot/config-5.txt index 2b8342f..9760f4c 100644 --- a/boot/config-5.txt +++ b/boot/config-5.txt @@ -55,7 +55,6 @@ enable_uart=1 # Enable audio (loads snd_bcm2835) dtparam=audio=on max_usb_current=1 -hdmi_drive=1 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 diff --git a/boot/config-7B-800x480.txt b/boot/config-7B-800x480.txt index 2b8342f..9760f4c 100644 --- a/boot/config-7B-800x480.txt +++ b/boot/config-7B-800x480.txt @@ -55,7 +55,6 @@ enable_uart=1 # Enable audio (loads snd_bcm2835) dtparam=audio=on max_usb_current=1 -hdmi_drive=1 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 diff --git a/boot/config-7C-1024x600.txt b/boot/config-7C-1024x600.txt index 3147408..a2ef456 100644 --- a/boot/config-7C-1024x600.txt +++ b/boot/config-7C-1024x600.txt @@ -55,7 +55,6 @@ enable_uart=1 # Enable audio (loads snd_bcm2835) dtparam=audio=on max_usb_current=1 -hdmi_drive=1 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 diff --git a/usr/99-calibration.conf-3508 b/usr/99-calibration.conf-3508 new file mode 100644 index 0000000..51e9729 --- /dev/null +++ b/usr/99-calibration.conf-3508 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "3945 233 3939 183" + Option "SwapAxes" "1" +EndSection diff --git a/usr/bcm2709-rpi-2-b.dtb b/usr/bcm2709-rpi-2-b.dtb new file mode 100644 index 0000000..42ced28 Binary files /dev/null and b/usr/bcm2709-rpi-2-b.dtb differ diff --git a/usr/bcm2710-rpi-3-b.dtb b/usr/bcm2710-rpi-3-b.dtb new file mode 100644 index 0000000..d2bf942 Binary files /dev/null and b/usr/bcm2710-rpi-3-b.dtb differ diff --git a/usr/qddpi24.dtb b/usr/qddpi24.dtb new file mode 100644 index 0000000..957800b Binary files /dev/null and b/usr/qddpi24.dtb differ