Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 934 Bytes

README.md

File metadata and controls

52 lines (38 loc) · 934 Bytes

HyperTouch 4.0 Kernel driver

HyperTouch 4.0 kernel driver

guide for raspberry pi

1. prerequisites

sudo apt-get install dkms git

2. clone repository

git clone https://github.com/shpi/hypertouch40

3. install

cd hypertouch40
   sudo ln -s /home/pi/hypertouch40 /usr/src/hypertouch40-1.0
   sudo dkms install hypertouch40/1.0 
   sudo dtc -I dts -O dtb -o /boot/overlays/hypertouch40.dtbo hypertouch40.dts

4. update /boot/config.txt

add following lines to config.txt

sudo nano /boot/config.txt
display_rotate=3
enable_dpi_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x7f216
dpi_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6
dtoverlay=hypertouch40
dtparam=touchscreen-swapped-x-y
dtparam=touchscreen-inverted-x

Control backlight (min:0 max:31)

echo 31 | sudo tee /sys/class/backlight/soc\:backlight/brightness