yuri91 / ili9341-rs

A WIP, no_std, generic driver for the ILI9341 (and ILI9340C) TFT LCD display
Apache License 2.0
57 stars 50 forks source link

Simplify and speed up initialization #19

Closed GrantM11235 closed 4 years ago

GrantM11235 commented 4 years ago

After spending quite a bit of time reading the datasheet, I am pretty sure these are the minimum required delays.

I also removed all of the "extended" commands. Some (most?) display modules are configured to ignore these commands, and the ones that don't should still work fine with their default settings.

Before: 920 milliseconds After: 131 milliseconds

Tested on an STM32F103 with an 8 bit parallel bus.

yuri91 commented 4 years ago

Hi @GrantM11235,

Thanks for the PR!

I admit that when I wrote the driver, I pretty much copied these delays values and commands from some C driver found on the internet.

I will test these changes on my board as soon as I can, and merge if I find no issues.

yuri91 commented 4 years ago

Seems good! Thanks again!