Quantcast
Channel: Recent Questions - Raspberry Pi Stack Exchange
Viewing all articles
Browse latest Browse all 50686

How to connect two touchscreens sensors to Raspberry Pi 4 B?

$
0
0

Raspberry Pi 4 B. Touch screen 10.1 inch HDMI LCD with XPT2046 Touch Controller. OS Simply Linux 10.2 or Raspbian. The sensor works on spi0, but not on spi1. I want connect two sensors on two spi or connect two touchscreens to one spi. Connection on spi1:
SCLK GPIO 21
MOSI GPIO 20
MISO GPIO 19
CE1 GPIO 27 (tried also on GPIO 17)
P6 GPIO 18

Configuration /boot/efi/config.txt:

dtparam=spi=on<br>dtoverlay=spi0-2cs<br>dtoverlay=spi1-3cs<br>

After editing the config, the following appeared: /dev/spidev0.0, /dev/spidev0.1, /dev/spidev1.0, /dev/spidev1.1 and /dev/spidev1.2.

Tell me also, what kind of contact is P6? I'm guessing it's an interrupt.

Someone answered me on the Raspberry forum:
Raspberry Git does not have an override for the SPI interface, running on SPI0 only.Write a custom overlay taking this as the starting point but targeting SPI1 this time.Or write a custom overlay which uses CS1 of SPI0 for communicating to the second touch controller.

But there is also an opinion that need to write a custom driver. Does anyone know anything about this?


Viewing all articles
Browse latest Browse all 50686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>