Forum Rule: Always post complete source code & details to reproduce any issue!
Page 22 of 22 FirstFirst ... 12 20 21 22
Results 526 to 531 of 531

Thread: ILI9488_t3 - Support for the ILI9488 on T3.x and beyond...

  1. #526
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,034
    I am also still not receiving anything on the MISO of this display... I have tried a couple of hacks, like I think I updated SPI library to try turning on the PU resistor on MISO pin, no difference. Change max speed to 2mhz on reads... Again still nothing. Next up double check wiring to this display...

    And/or I have another display which is an ILI9486 (I think) and see If I can wire it up and make it work...

  2. #527
    Quote Originally Posted by KurtE View Post
    @wcalvert, @mjs513 - Try syncing again. I believe all of this was fixed in my other branch, that I had done the work to fix the DMA issue for T4, plus added support for multiple displays with frame buffers....
    So I merged those changes in the master branch.
    It's compiling now, thank you for the quick fix.

  3. #528
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,664
    @KurtE
    Strangeness with readPixel and readRect even on the ILI9341. Ok here it goes. I came up with a new test sketch:
    Code:
    #include "ILI9341_t3n.h"
    
    ILI9341_t3n tft = ILI9341_t3n(10, 9, 8);
    uint16_t colors[2500];
    
    void setup() {
      tft.begin();
      tft.setRotation(2);
      tft.fillScreen(ILI9341_RED);
      Serial.print("Fill Screen Color S/B: ");
      Serial.println(CL(255,0,0),HEX);
      Serial.println(tft.readPixel(120,160),HEX);
      Serial.println();
    
      //tft.fillTriangle( 0,0,   180,0,  0,240,  ILI9488_BLUE);
      //tft.fillTriangle( 240,0, 120,0,  240,160, ILI9488_ORANGE);
      //tft.fillTriangle( 240,320, 120,320, 240,160, ILI9488_RED);
      //tft.fillTriangle( 2,320,  120,320,   0,160, ILI9488_YELLOW);
      tft.fillRect(0,0,240,320, ILI9341_YELLOW);
      //tft.fillRect(0,0,320,480, ILI9488_YELLOW);
    
      Serial.print("Rect Color S/B: ");
      Serial.println(CL(255,255,0),HEX);
      Serial.println("TEST 1 (1x1):");
      tft.readRect(120,160,1,1,colors);
      Serial.println(colors[0],HEX);
      Serial.println(colors[1],HEX);
      Serial.println(colors[2],HEX);
      
      Serial.println("TEST 2 (2x2):");
      tft.readRect(120,160,2,2,colors);
      Serial.println(colors[0],HEX);
      Serial.println(colors[1],HEX);
      Serial.println(colors[2],HEX);
      Serial.println(colors[3],HEX);
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    
    }
    Using the ILI9341 on a T3.6 on first load I get this:
    Code:
    Fill Screen Color S/B: F800
    F800
    
    Rect Color S/B: FFE0
    TEST 1 (1x1):
    20
    0
    0
    TEST 2 (2x2):
    FFE0
    FFE0
    FFE0
    FFE0
    and if I reload it again I get this
    Code:
    Fill Screen Color S/B: F800
    0
    
    Rect Color S/B: FFE0
    TEST 1 (1x1):
    20
    0
    0
    TEST 2 (2x2):
    20
    100
    2020
    100
    and if I reset it a few times:
    Code:
    Fill Screen Color S/B: F800
    0
    
    Rect Color S/B: FFE0
    TEST 1 (1x1):
    20
    0
    0
    TEST 2 (2x2):
    FFE0
    FFE0
    FFE0
    FFE0
    Output will vary on reset

    If I try using the ili9488 - forget it doesn't work at all, all 0's (edit) this is all on a T3.6

  4. #529
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,664
    @KurtE

    If I try either the 9341 or the 9488 on the T4 its a complete no go. Always returns 0's for pixel data

  5. #530
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,034
    @mjs513 - I have had luck with ILI9341 with the readPixels/rect, but as mentioned right now no luck at all with 9488 on either T3.6 or T4...

    I thought I might try hooking up the other ILI9486 display to see if it works, but it looks like it is setup with a Parallel interface and not SPI. The SPI pins are there for SD Card...

    So I will probably punt on that display.

    The only other things you might try include: lower the SPI speed for read. I think it is currently set at 4mhz, try 2mhz...
    Not sure what else to try yet...

  6. #531
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,664
    Quote Originally Posted by KurtE View Post
    @mjs513 - I have had luck with ILI9341 with the readPixels/rect, but as mentioned right now no luck at all with 9488 on either T3.6 or T4...

    I thought I might try hooking up the other ILI9486 display to see if it works, but it looks like it is setup with a Parallel interface and not SPI. The SPI pins are there for SD Card...

    So I will probably punt on that display.

    The only other things you might try include: lower the SPI speed for read. I think it is currently set at 4mhz, try 2mhz...
    Not sure what else to try yet...
    @KurtE
    Thought I answered this but I guess I forgot to hit save. Anyway, I give up for now. SPI Read was set at 2Mhz already. I could only get readPixel to work sometime on the T36. with the 9341. readRect works most of the time with the on the T3.6 with the 9341 display.

    On the T4 couldn't get the 9341 or the 9488 working to readpixel or the readRect using the test sketch I put together above.

Posting Permissions

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