Forum Rule: Always post complete source code & details to reproduce any issue!
Page 23 of 23 FirstFirst ... 13 21 22 23
Results 551 to 569 of 569

Thread: Highly optimized ILI9341 (320x240 TFT color display) library

  1. #551
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,813
    I have found in many cases you don't need the reset line, but then I get a display that appears to need it... Not sure why...

  2. #552
    It seems like this is one of the modules that needs it! Thanks, Doug

  3. #553
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    114
    Glad it worked Good learning for me - I have my display (also ILI9341 based) but just waiting on a 2x20 header I ordered that will span the gap in the middle of the breadboard...

  4. #554
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,032
    Hi all,
    I've updated my google-fonts repository. I had to delete the old one and create a new - I hope this does not cause too much trouble. My git-tool crashed repatedly when it tried to update - i think, it was because of the size.

    The apache-directory and ufl-directoy now contain converted files, too.

    Some statistics:

    - Apache : 51 Fonts
    - ofl : 934 Fonts
    - ufl : 3 Fonts
    - 2554 Font files (*.ttf) total
    ~3 GB total
    - It took about 1 hour to convert all fonts

    I have added my script to convert the archive, so, I hope, I don' have to write a new one next time If you want to use it, update the paths in "googlefonts.sh" (frank.tar.gz).
    Last edited by Frank B; 03-20-2018 at 08:43 PM. Reason: typo, formatting

  5. #555
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    114
    Wow, awesome. Thanks Frank!

  6. #556
    Junior Member
    Join Date
    Apr 2018
    Posts
    2
    I'm having some issues with the Library. It wont left me do a draw round rect? I can draw a rect just fine can somebody show me a line of code to do this if it's possible with this library.

  7. #557
    Senior Member
    Join Date
    Dec 2013
    Posts
    203
    line of code to do this
    Code:
    tft.drawRoundRect(180, 200, 120, 40, 6, ILI9341_CYAN);

  8. #558
    Junior Member
    Join Date
    Apr 2018
    Posts
    2
    Quote Originally Posted by Chris O. View Post
    Code:
    tft.drawRoundRect(180, 200, 120, 40, 6, ILI9341_CYAN);
    Thank you. I don't know how I forgot that I had to add the radius value. My error.

  9. #559
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    114
    Hi FrankB -

    I'm having trouble getting the ILI9341_t3DMA library to work.
    When I try Paul's original ILI9341_t3 library, it works out of the box, as does Kurt's ILI9341_t3n.
    When I attempt to run the tests using the latest version of ILI9341_t3DMA I get compile errors relating to "glcdfont".
    I've had a search and note another user has had a similar issue with the library in the past. Did you ever find out what it was?

    Code:
    C:\Users\peter\AppData\Local\Temp\arduino_build_118287\libraries\ILI9341_t3DMA\ILI9341_t3DMA.cpp.o: In function `ILI9341_t3DMA::drawChar(short, short, unsigned char, unsigned short, unsigned short, unsigned char)':
    
    D:\Users\peter\Documents\Arduino\libraries\ILI9341_t3DMA/ILI9341_t3DMA.cpp:984: undefined reference to `glcdfont'
    
    D:\Users\peter\Documents\Arduino\libraries\ILI9341_t3DMA/ILI9341_t3DMA.cpp:947: undefined reference to `glcdfont'
    
    collect2.exe: error: ld returned 1 exit status
    Cheers,
    Peter

    Edit: Test results using _t3 and _t3n. Both on T_3.6 @180MHz
    Basically identical, apart from the obvious framebuffer (FB) results being miles quicker.
    Code:
    				_t3		_t3n		_t3n (FB)
    Screen fill              	224906		224954
    Text                     	11223		11400
    Lines                    	58387		58377
    Horiz/Vert Lines         	18382		18398
    Rectangles (outline)    	11683		11695
    Rectangles (filled)      	462091		462246		63073
    Circles (filled)         	69017		70225
    Circles (outline)        	53691		55378
    Triangles (outline)      	14104		14115
    Triangles (filled)       	153623		154156
    Rounded rects (outline)  	24579		25029
    Rounded rects (filled)   	504445		504954		73661
    Last edited by Projectitis; 04-22-2018 at 10:55 AM.

  10. #560
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,032
    I've not used that lib for ages i'll take a look this week.

  11. #561
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    114
    Thanks! It'll be great to have DMA working with the framebuffer!

  12. #562
    Junior Member
    Join Date
    May 2018
    Posts
    14
    Sorry if this is the wrong thread. I'm no programmer and a relative newbie to the PJRC forum.

    I just purchased the little "purple board" Color touch Screen tester that uses a Teensy 3.2. I have the board built, and one of the 2.8" displays. I am desperately looking for a Teensy 3.2 complete sketch to use with this test board to exercise these displays and the resistive touch screen.

    I'm a good electronic technician with no programming background. I do know how to use the Arduino IDE and the "Teensyduino" add-on to upload programs to the Teensy series so that's not a problem and I can install whatever recommended libraries are needed. I just need to find a usable sketch to make this thing work.

    Any help would certainly be appreciated.

    Jim Sheldon (Amateur Radio Operator W0EB)

  13. #563
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,358
    Jim - look Under File / Examples you should see ILI9341_t3

  14. #564
    Senior Member
    Join Date
    Nov 2012
    Location
    Salt Lake City, UT, USA
    Posts
    258

    ILI9341 touch test program with or without Ethernet also on the SPI net

    Jim, there's a good demo here: https://github.com/systronix/W5500_Test and look for ILI9341_Test. It draws a screen with stats about the x,y,z values of your touch. Useful for a thorough test of the touchscreen and comparing finger to styli. It supports a modified version of the adapter board you are using to allow WizNET W5500 chip based Ethernet to share SPI. It works with BuyDisplay or the eBay red TJCTM24028-SPI boards. The example has TFT_CS and TFT_DC pins moved to not clash with Ethernet but you will see comments there to let you change back to the defaults. Hope that is useful.

  15. #565
    Junior Member
    Join Date
    May 2018
    Posts
    14
    Thanks!

    Jim

  16. #566
    Junior Member
    Join Date
    May 2018
    Posts
    14
    Thanks for this one too!

    Jim

  17. #567
    Junior Member
    Join Date
    Feb 2015
    Posts
    17
    I've having a problem with the ILI9341_t3 library.
    Everything seems to work fine except the background when printing text.
    Here's an example
    I'm drawing a picture on the screen, then I'm drawing text on top of it.
    Code:
    tft.setFont(Arial_32_Bold);
    tft.setTextColor(ILI9341_RED, ILI9341_BLACK);
    tft.print("Test");
    I can still see the image through the text.
    I've tried multiple font sizes as well as several combinations of colors.
    The first color is always the color of the text and the second color is ignored.

  18. #568
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,358
    AFAIK - writes are transparent - only the pixels specified by the font are written for the given character.

    To 'clear' space calculate and draw a filled rectangle of desired color first.

    To update that space faster than rectangle redraw - re-write the prior chars in background color - then relocate and then in the new in foreground color.

  19. #569
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,813
    Quote Originally Posted by jhendrix View Post
    I've having a problem with the ILI9341_t3 library.
    Everything seems to work fine except the background when printing text.
    Here's an example
    I'm drawing a picture on the screen, then I'm drawing text on top of it.
    Code:
    tft.setFont(Arial_32_Bold);
    tft.setTextColor(ILI9341_RED, ILI9341_BLACK);
    tft.print("Test");
    I can still see the image through the text.
    I've tried multiple font sizes as well as several combinations of colors.
    The first color is always the color of the text and the second color is ignored.
    Quote Originally Posted by defragster View Post
    AFAIK - writes are transparent - only the pixels specified by the font are written for the given character.

    To 'clear' space calculate and draw a filled rectangle of desired color first.

    To update that space faster than rectangle redraw - re-write the prior chars in background color - then relocate and then in the new in foreground color.
    You might try my version of the library: ili931_t3n - https://github.com/KurtE/ILI9341_t3n

    I added code to support this. Warning though, there are interesting issues with this. That is, it will fill in, in the background color such that if you continued to a new row of text, the areas between will be filled (full spacing). Which is sometimes not what you want. This version of library also has the ability to turn on a clip rectangle, which is helpful in these cases.

Posting Permissions

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