Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: TFT touchscreen ILI9341 + XPT2046, on Teensy 4.1

  1. #1
    Senior Member Sandro's Avatar
    Join Date
    Nov 2016
    Location
    Rimini - Italy
    Posts
    169

    TFT touchscreen ILI9341 + XPT2046, on Teensy 4.1

    Hi,
    in my application I use a T.41 + Audio Board Rev.D + W25Q512JV (flash memory) + n.2 ESP-PSRAM64H.
    The TFT display uses SPI1 pins (instead of SPI0, because there where issues on SPI0):
    Click image for larger version. 

Name:	display.jpg 
Views:	13 
Size:	44.8 KB 
ID:	31901
    and everything works perfecly.

    I have problems with the touch fuctionality; using the suggested pins:
    Name:  touch.jpg
Views: 175
Size:  13.7 KB
    the are clicks in the audio; the question is: is it possible to use different pins for touch?

    Thanks in advance
    Last edited by Sandro; 08-30-2023 at 04:11 PM.

  2. #2
    Not sure if this is your problem, but pin 8 overlaps with the first i2s input. There's a nice chart here that shows what's require for the audio shield:
    https://www.pjrc.com/store/teensy3_audio.html

    T_CS and T_IRQ, Pins 8 and 2 should work on any free pin. And in many cases you can get by without using the IRQ.

    You can also use the same SPI pins, for touch and display, just use different CS pins. This is how I've been using it for quite a while.

  3. #3
    Senior Member Sandro's Avatar
    Join Date
    Nov 2016
    Location
    Rimini - Italy
    Posts
    169
    Thank you so much for this suggestion, I'll try the connection on the same SPI bus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •