honey_the_codewitch
Active member
Background - why I'm even asking:
I wrote the htcw_gfx library which is a cross platform graphics library that's a bit more high level than Adafruit and TFT_eSPI, but not quite LVGL.
It does however, support anti-aliased TrueType vector fonts, JPG, alpha-blending, indexed color matching for things like loading jpgs onto 3 or 7 color e-paper displays, a completely decoupled driver interface (htcw_gfx is not tied to hardware, drivers can be written for any hardware)
It runs on Arduino, ESP-IDF, Windows, and Linux, and probably elsewhere.
Part of the reason I wrote it is I build professionally, and I needed a graphics library that fit my specific professional requirements and that I could add to readily as I needed it.
I'm heavily invested in it, and while it runs on the Teensy as is, I'd like to optimize the SPI bus interface code used by all the Arduino drivers. Right now it's falling back to my generic Arduino SPI ops, but I'm going to conditionally compile in Teensy specific optimizations like I did with the ESP32
_____________________________________________________
I've been looking through the ILI9341_t3 library for an idea of how to speak Teensy's language at the register level.
I hit line 400 of the ILI9341_t3.h and I'm stumped by a comment I found
I don't know if I understand. Does this provide some sort of optimization for the DC line if you wire it to a hardware SPI CS line? (as shown in the diagram that ships with the teensy)
If not, then what does it mean?
Thanks in advance!
I wrote the htcw_gfx library which is a cross platform graphics library that's a bit more high level than Adafruit and TFT_eSPI, but not quite LVGL.
It does however, support anti-aliased TrueType vector fonts, JPG, alpha-blending, indexed color matching for things like loading jpgs onto 3 or 7 color e-paper displays, a completely decoupled driver interface (htcw_gfx is not tied to hardware, drivers can be written for any hardware)
It runs on Arduino, ESP-IDF, Windows, and Linux, and probably elsewhere.
Part of the reason I wrote it is I build professionally, and I needed a graphics library that fit my specific professional requirements and that I could add to readily as I needed it.
I'm heavily invested in it, and while it runs on the Teensy as is, I'd like to optimize the SPI bus interface code used by all the Arduino drivers. Right now it's falling back to my generic Arduino SPI ops, but I'm going to conditionally compile in Teensy specific optimizations like I did with the ESP32
_____________________________________________________
I've been looking through the ILI9341_t3 library for an idea of how to speak Teensy's language at the register level.
I hit line 400 of the ILI9341_t3.h and I'm stumped by a comment I found
Code:
if (!_dcport) _spi_tcr_current = IMXRT_LPSPI4_S.TCR; // Only if DC is on hardware CS
I don't know if I understand. Does this provide some sort of optimization for the DC line if you wire it to a hardware SPI CS line? (as shown in the diagram that ships with the teensy)
If not, then what does it mean?
Thanks in advance!