Quantcast
Viewing all articles
Browse latest Browse all 4909

Interfacing (DSI, CSI, I2C, etc.) • Re: Small TFT based on ILI9341 ST7789 - how to use

I swapped miso with mosi..... now it works, thanks! What about touch? How can I make it work?
touch controller is an ADS7846 (or derivative). You will have to load the related overlay. Connects to the same SPI, CS is GPIO7. Sorry, have no idea on the parameters as I've never user the touch of that display.

Code:

Name:   ads7846Info:   ADS7846 Touch controllerLoad:   dtoverlay=ads7846,<param>=<val>Params: cs                      SPI bus Chip Select (default 1)        speed                   SPI bus speed (default 2MHz, max 3.25MHz)        penirq                  GPIO used for PENIRQ. REQUIRED        penirq_pull             Set GPIO pull (default 0=none, 2=pullup)        swapxy                  Swap x and y axis        xmin                    Minimum value on the X axis (default 0)        ymin                    Minimum value on the Y axis (default 0)        xmax                    Maximum value on the X axis (default 4095)        ymax                    Maximum value on the Y axis (default 4095)        pmin                    Minimum reported pressure value (default 0)        pmax                    Maximum reported pressure value (default 65535)        xohms                   Touchpanel sensitivity (X-plate resistance)                                (default 400)        penirq is required and usually xohms (60-100) has to be set as well.        Apart from that, pmax (255) and swapxy are also common.        The rest of the calibration can be done with xinput-calibrator.        See: github.com/notro/fbtft/wiki/FBTFT-on-Raspian        Device Tree binding document:        www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt

Statistics: Posted by aBUGSworstnightmare — Sun Jan 12, 2025 7:01 am



Viewing all articles
Browse latest Browse all 4909

Trending Articles