Forum Rule: Always post complete source code & details to reproduce any issue!
Page 24 of 24 FirstFirst ... 14 22 23 24
Results 576 to 586 of 586

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

  1. #576
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,110
    Quote Originally Posted by mjs513 View Post
    @KurtE and @Projectitis

    I incorporated the changes into my copy of the ILI9341_t3 library and the fonts do look nice - but as you said does take a bit longer but the quality is nicer especially for the larger fonts. I did test with the scrolltest.ino sketch but the fonts didn't seem to work as well but I don't have time to debug right now maybe later. But it does work.
    It is now pulled in to the ili9341_t3n library

    Thanks
    Kurt

  2. #577
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    165
    Hi @mjs513 - I've got family here for a few days, but after that I'll take a look I have a fix for the speed that will make it actually faster than the standard non ant-aliased font rendering, and I'll also debug the scrolling. I realised that I haven't published the script to create anti-aliased fonts either, so I'll do that too!

    @KurtE - fantastic, thank you In my libraries I typedef ILI9341_t3_font_t as packedbdf_t so that it isn't named after a display. What do you think of this strategy going forward?

  3. #578
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    165
    Scripts and instructions to create packed BDF anti-aliased fonts here:
    https://github.com/projectitis/packedbdf

    Full description of packedbdf_t data type also in the repo. Many thanks to Paul, spook and others for their initial work on all this material!
    note: packedbdf_t and ILI9341_t3_font_t are the same thing.

  4. #579
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    165
    Quote Originally Posted by mjs513 View Post
    I incorporated the changes into my copy of the ILI9341_t3 library and the fonts do look nice - but as you said does take a bit longer but the quality is nicer especially for the larger fonts. I did test with the scrolltest.ino sketch but the fonts didn't seem to work as well but I don't have time to debug right now maybe later. But it does work.
    @mjs513 I have updated my branch of Paul's ILI9341_t3 library with more efficient anti-alias rendering. Its about 25% faster than the standard non-anti-aliased rendering!
    Normal rendering: 14971
    Anti-aliased rendering: 11551

    I'll take a look at what's happening with scrolltest now (on KurtE's t3n version).

    EDIT: Have made a new example in my version of _t3n. I just had to change the call to setTextColor to also specify the background color.

    It still looks slightly wrong when the text is printed on the green bar at the bottom of the white box - the text that extends into the white box still has a green background color behind it. Since I'm not entirely sure what your intention is with scrolltest, I'll leave it at that for now and let you look into it if it's a problem?
    Last edited by Projectitis; 04-24-2019 at 06:30 AM.

  5. #580
    Senior Member Projectitis's Avatar
    Join Date
    Feb 2018
    Location
    New Zealand
    Posts
    165
    Aaaand have improved the original font rendering speed (1bpp, non anti-aliased fonts) of ILI9341_t3:
    original 1bpp fonts 14971
    improved 1bpp fonts 11360 (~25% faster)
    (Compare to new anti-alias fonts 11551)

    Find updates here: https://github.com/projectitis/ILI93...ti-alias-fonts

  6. #581
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,633
    Sounds like some good work

  7. #582
    Wow. 4/24/19 was the last update on this thread?

    What about T4 and ili9341_t3? Is there an ILI9341_t4 I'm missing somewhere?

  8. #583
    Junior Member
    Join Date
    Jan 2020
    Posts
    1
    HI All,
    I'm relatively new here, just tried this library on the T4 but just getting a white screen. If I use the adafruit library with the same wiring and pin assignments it works fine.
    Has anybody had this working with a t4 yet?

    thanks in advance
    Tony

  9. #584
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,110
    Quote Originally Posted by tonykenny View Post
    HI All,
    I'm relatively new here, just tried this library on the T4 but just getting a white screen. If I use the adafruit library with the same wiring and pin assignments it works fine.
    Has anybody had this working with a t4 yet?

    thanks in advance
    Tony
    Yes I have it working...

    It would help if you maybe gave a little more details, like, what version of Arduino and Teensyduino you are using? Platform maybe although maybe not so much in this case.

    But more importantly more details on how you have it wired in? Which display are you using...
    Which sketch and how is it configured? i.e. does your wiring match for MOSI, MISO, SCL as well as DC and CS? Do you have RST connected to a pin? If so do you specify it in the constructor and does it match your wiring

  10. #585
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,357
    I can also confirm it definitely does work.

    Quote Originally Posted by tonykenny View Post
    If I use the adafruit library with the same wiring and pin assignments it works fine.
    Adafruit's libraries support more pin combinations. Many of their libs support almost any pins, using slow GPIO access to the pins rather than hardware SPI. So one possible explanation is you may have used a pin assignment that's not supported by the optimized library, but works with Adafruit's lib because of their support for slow access using any pins. But really, that's just a blind guess, since I can't see your hardware & wiring, can't see your code or screen.

  11. #586
    I also have it working but my setup on SPI0 required 100 ohm series resistors on MOSI, MISO and SCK at the Teensy end. I also share SPI0 with touch (XPT2046) and SD card through the same resistors, all working properly.

Posting Permissions

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