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

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,300
    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,935
    @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,935
    @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,300
    @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,935
    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.

  7. #532
    @KurtE

    What tool are you using to generate font .h and .cpp files? This one by any chance: https://forum.pjrc.com/threads/54345...t3-font-editor

  8. #533
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,935
    @KurtE

    Thought I would upload a video on what I did so far with the T4 and ArduCAM and the ILI9341 display: https://www.youtube.com/watch?v=Fp0MW_M0

  9. #534
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,300
    Quote Originally Posted by wcalvert View Post
    @KurtE

    What tool are you using to generate font .h and .cpp files? This one by any chance: https://forum.pjrc.com/threads/54345...t3-font-editor
    Sorry, I have not actually ever done any fonts... When I have needed them to play with, I either used the ones already in the library, or in some cases, Paul I think has a set of ili9341 fonts and Adafruit has a set of fonts and I think Frank...

    Quote Originally Posted by mjs513 View Post
    @KurtE

    Thought I would upload a video on what I did so far with the T4 and ArduCAM and the ILI9341 display: https://www.youtube.com/watch?v=Fp0MW_M0
    So far it shows Video unavailable...

  10. #535
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,935
    Quote Originally Posted by KurtE View Post
    Sorry, I have not actually ever done any fonts... When I have needed them to play with, I either used the ones already in the library, or in some cases, Paul I think has a set of ili9341 fonts and Adafruit has a set of fonts and I think Frank...


    So far it shows Video unavailable...
    Try this version of the link: https://youtu.be/Fp0MW_M013o

  11. #536
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,300
    Quote Originally Posted by mjs513 View Post
    Try this version of the link: https://youtu.be/Fp0MW_M013o
    It works! Looks good!

  12. #537
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,935
    Quote Originally Posted by KurtE View Post
    It works! Looks good!
    Of course. I used what you taught me with all these displays we played with. Actually right now it's only doing 1 line at a time with write Rectangle . Wanted just to see what would happen.

  13. #538
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,935
    Morning all

    Running into kind of a strange problem for. I porting a 3D library to the T4 (should work on the T3.x also) and using inheritance to get the display driver as the base class. In this case its the ILI934_t3n library. But for some reason its pulling the ILI9488 library fonts as well so I am getting errors for all the fonts. Here is an extract:
    Code:
    C:\Users\Merli\AppData\Local\Temp\arduino_build_400004\libraries\ILI9488_t3\ili9488_t3_font_ComicSansMS.c.o:(.rodata.ComicSansMS_8+0x0): multiple definition of `ComicSansMS_8'
    
    C:\Users\Merli\AppData\Local\Temp\arduino_build_400004\libraries\ILI9341_t3n\ili9341_t3n_font_ComicSansMS.c.o:(.rodata.ComicSansMS_8+0x0): first defined here
    
    collect2.exe: error: ld returned 1 exit status
    
    Using library Arduino_3d in folder: D:\Users\Merli\Documents\Arduino\libraries\Arduino_3d (legacy)
    Using library ILI9341_t3n at version 1.0 in folder: D:\Users\Merli\Documents\Arduino\libraries\ILI9341_t3n 
    Using library SPI at version 1.0 in folder: F:\arduino-1.8.9\hardware\teensy\avr\libraries\SPI 
    Using library SPIN in folder: D:\Users\Merli\Documents\Arduino\libraries\SPIN (legacy)
    Using library XPT2046_Touchscreen at version 1.3 in folder: F:\arduino-1.8.9\hardware\teensy\avr\libraries\XPT2046_Touchscreen 
    Using library ILI9488_t3 at version 1.0 in folder: D:\Users\Merli\Docum
    Here is the 3D library I am working on:
    Arduino_3d.zip

    Not sure why unless doing the constructor incorrectly.

    EDIT: NEVERMIND - figured it out.
    Last edited by mjs513; 09-04-2019 at 12:59 PM.

Posting Permissions

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