Add the following lines to the config.txt file
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
hdmi_drive=1
dtoverlay=waveshare-ads7846,penirq=25,xmin=200,xmax=3900,ymin=200,ymax=3900,speed=50000
Download the waveshare-ads7846.dtbo file . Copy the .dtbo file to the overlays directory (/boot/overlays/).
Install bluetooth drivers.
sudo apt install bluez bluetooth
sudo systemctl enable bluetooth
sudo systemctl start bluetooth
Set Bluetooth controller transport mode to BLE only.
Open the bluetooth config file.
sudo nano /etc/bluetooth/main.conf
Find the line with :
#ControllerMode = dual
Replace with:
ControllerMode = le
rfkill list bluetooth
If any are blocked, run :
sudo rfkill unblock bluetooth
Restart Bluetooth.
sudo systemctl restart bluetoothpython3 -m venv ble_env
source ble_env/bin/activate
pip install "qrcode[pil]"
pip install bleak