esp-bsp
esp-bsp copied to clipboard
feature(ili9341): Add alternative driver configuration for LCD ILI9341 (BSP-638)
This is an alternative driver option that works with some LCD displays. The same as in TFT_eSPI library here: https://github.com/Bodmer/TFT_eSPI/blob/5793878d24161c1ed23ccb136f8564f332506d53/TFT_Drivers/ILI9341_Init.h#L127
I think, this cannot be part of driver. User can use vendor_config for change initialization commands. It can by part of readme file or something like that.
@vvranjek please, did you see my latest comment?
@espzav It's been a long time since I was working with this, I just wanted to contribute my findings. Here is my view on this: users probably can use vendor_config to use custom drivers config, but this is nothing custom, the LCD that I got works out-of-the-box with the code that I provided in PR, not with original driver. This is the driver for ili9341, but ili9341 apparently is being manufactured with different specs/config, thus the need for different/alternative drivers. Since we don't know any manufacturing codes or part numbers that would tell us which specific hardware it is, there is no other option but to have alternative versions of the driver and the user must use trial and error to find out which one works for them. I spent days figuring this out, that is why I shared the code. Arduino libs use the same approach with alternative driver.