-
Posts
2,620 -
Joined
-
Last visited
-
Days Won
2
Content Type
Forums
Store
Downloads
Blogs
Posts posted by Joel Bodenmann
-
-
Good to hear that you got it working.
The multicolor lines indicate that this part of the screen was not initialized properly. Please check your initialization code to make sure that the entire area gets initialized.
~ Tectu
Unable to get ILI9320 display driver working on STM32F
in Support
Posted
Hello David,
Just leave it blank so your line would look like this:
Why exactly are you modifying the SPI config registers in your SPI struct? I cannot remember the default values provided by ChibiOS/RT but experience says that it will work for 99% sure if you leave it as it is. Just set a higher prescaler to be sure that your LCD controller can handle it. I know that distributors often write «SPI Freq = 10MHz» in their example codes but those are very often just copied and copied and copied and copied so the comments are not up to date.
Furthermore I can see that you seem to directly access your registers in the board file. Why do you do this? I advice you to do everything through the SPI driver provided by the ChibiOS/RT HAL because the spiSend() command already handles the busy flag and so on.
One more thing: How long are your wires?
~ Tectu