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

Thread: ILI9341 connections to Audio Board

  1. #1
    Junior Member
    Join Date
    Jul 2018
    Posts
    6

    ILI9341 connections to Audio Board

    Hi all!!

    I compiled the breakouttouchpaint example from the optimized ILI9341_t3 using the audio board, and I see the following behavior in my display: Apparently the render routines are working fine, but I am not able to get touch information, and I see little red dots rendering in the bottom of the display (please see image below), and if I increaste the MINPRESSURE constant I see less dots, I suspect this is a hardware issue, does anyone with experinece can help me? here's the picture:

    Click image for larger version. 

Name:	IMG_4506.jpg 
Views:	8 
Size:	225.6 KB 
ID:	18149



    Thanks a lot!!

    Daniel
    Last edited by daspuru; 11-08-2019 at 05:39 PM.

  2. #2
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,359
    It probably would be helpful to post a picture showing exactly how you have things wired up.

  3. #3
    Junior Member
    Join Date
    Jul 2018
    Posts
    6
    Hi Michael, thanks for answering. I managed to compile one test and edited the post above with an image. Please read the text again, the problem has changed.

    Thanks again!!

  4. #4
    Junior Member
    Join Date
    Jul 2018
    Posts
    6
    Actually I see this lines of code in the example:

    Code:
    // These are the four touchscreen analog pins
    #define YP A2  // A2 must be an analog pin, use "An" notation!
    #define XM A3  // A3 must be an analog pin, use "An" notation!
    #define YM 5   // 5 can be a digital pin
    #define XP 4   // 4 can be a digital pin
    However, I see no connections are made in A2, neither A3 or the named pins of the Teensy, then the initialization of the "ts" instance object of the TouchScreen class uses this constant information, maybe I am missing something regarding the touchscreen?

    Thanks.

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,069
    On the displays like PJRC ili9341 commonly used - the touch is through an SPI controller XPT2046 on the display. Example would be : ...\hardware\teensy\avr\libraries\XPT2046_Touchscr een\examples\TouchTest\TouchTest.ino

    If there are only SPI labeled pins - including a subset for 'touch' on the display and they are connected - to SPI and unique CS - that should work. If the PCB is marked otherwise then it would take another touch driver and analog pin connects to feed that AFAIK.

  6. #6
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,359
    There is this post that mentions some things to improve SPI devices:

Posting Permissions

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