4 INCH CTP LCD(CTP40) is an 800x480 pixel display for the Raspberry Pi, with optional capacitive touchscreen.
You can download it on our Github
If your Raspberry Pi needs to be fixed on the panel: If your Raspberry Pi is not fixed:
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
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
backlight.py
to your piThere is backlight.py
file in the repo, copy it to/home/pi
path
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
nano /home/pi/backlight.py
change 128
to the value you want.
sudo reboot
We provide you and example OS image here(dropbox) for you. It is base on Octopi0.18
.
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
.
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