FYSETC / FYSETC-CTP40

This repo contains the infomations and drivers for FYSETC CTP40 display
10 stars 3 forks source link

4 INCH CTP LCD Drivers


4.0CTP

4 INCH CTP LCD(CTP40) is an 800x480 pixel display for the Raspberry Pi, with optional capacitive touchscreen.

1. Features

2. Dimensions

Dimensions

3. Schematic diagram

Schematic

You can download it on our Github

4. Install

4.1 Pi install

If your Raspberry Pi needs to be fixed on the panel: installation1 If your Raspberry Pi is not fixed: installation2

4.2 Driver install

Clone this repo first, run

git clone https://github.com/FYSETC/FYSETC-CTP40

There are three folder name Pi3 and Pi4 and Pi4-64-beta, If you are using Raspberry Pi3 and older device, please follow the README file in Pi3 folder. And if you are using Raspberry Pi4 32bit OS, then follow the README file in Pi4 folder. And if you are using Raspberry Pi4 64bit OS, then follow the README file in Pi4-64-beta folder.

if you run bullseye system and you get blank screen, better to comment out below in /boot/config.txt file. Don't have a better solution now, i will keep looking into it.

#dtoverlay=vc4-kms-v3d

5. How to change backlight

Step 1. Install pigpio

First we need to install pigpio library, you can follow the instruction here.

wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
make
sudo make install

If the Python part of the install fails it may be because you need the setup tools.

sudo apt install python-setuptools python3-setuptools

Step 2. Copy backlight.py to your pi

There is backlight.py file in the repo, copy it to/home/pi path

Step 3. Enable backlight.service

Copy the backlight.service file in this repo to /etc/systemd/system

sudo cp backlight.service /etc/sysetmd/system/backlight.service

inform systemd that a new service has been added. This is done with the following command:

sudo systemctl daemon-reload

Now you can attempt to start the service using the following command:

sudo systemctl start backlight.service

Enable it to run at boot

sudo systemctl enable backlight.service

Step 4. Change backlight value

nano /home/pi/backlight.py

change 128 to the value you want.

Step 5. Reboot

sudo reboot

6. OS image

We provide you and example OS image here(dropbox) for you. It is base on Octopi0.18.

6.1 how to flash

Before flash, you need an SD card , minimum requirement of SD card capacity is 8G. Please prepare that first. And then you can use this software here to install. Well that are so many OS flash tool that you can use. And there are a lot of tutorial if you google how to flash os image.

6.2 OctoPi

You can login in Octoprint with the following account and password.

Account: FYSETC
Password: 12345678

OS SSH login account and password

Account: pi
Password: raspberry

7. Shop

FYSETC-4INCH CTP LCD

8. Tech Support

Please submit any technical issue into our github or forum