Hi everyone. I'm new to the Teensy forum. I just got the Teensy 4 and 4.1 and decided to look for ways I could help the libraries. I optimize code for a living and in my spare time (I can't help it
). I also like to work on display libraries, so I decided to focus my attention on the ILI9341_t3 lib provided with the Arduino support of the Teensy. I was able to make some significant improvements to the speed without breaking compatibility. My last set of changes hasn't been merged yet, but you can try it here:
https://github.com/PaulStoffregen/ILI9341_t3/pull/61
A couple of my other PRs were already merged recently. The complete changes include:
Here's a video if it in action running at 80Mhz
https://github.com/PaulStoffregen/ILI9341_t3/pull/61
A couple of my other PRs were already merged recently. The complete changes include:
- You can now explicitly set the SPI speed (still defaults to 30Mhz, but 80Mhz works for me)
- Speedup of setAddr() only sets each axis if it changed (helps almost every operation)
- Sped up circle and rounded rect drawing. Most apparent on larger circles/rect, can be 100% faster
- Sped up proportional font drawing - 40-100% faster depending on the character
- Sped up GLCD font drawing (default 5x7 fixed font),
Here's a video if it in action running at 80Mhz