lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
356 stars 51 forks source link

Change SPI ffrequency #69

Closed Ganjouille closed 2 years ago

Ganjouille commented 2 years ago

Hi! Thank you for your work. Very good library.

My question is what is correct way to change the SPI clock frequency?

I experience artifacts/glitches (very little) but would like to optimize. Is this something to try?

lexus2k commented 2 years ago

The constructors of many displays accept frequency as the argument of SPlatformI2cConfig or SPlatformSpiConfig structures. For SPI config you may pass {-1, {-1}, -1, YOUR_FREQUENCY, -1, -1}

https://codedocs.xyz/lexus2k/lcdgfx/struct_s_platform_spi_config.html