Page 1 of 1

lcd3310

Posted: Sun Nov 17, 2013 12:24 am
by part1zan_
Has anyone used the ChibiOS/RT lcd3310 driver? Is it working? I didn't manage to get it to work.
I connected the lcd3310 to my STM32F3Discovery's SPI2 (AFAIK, properly).
What I got is the light. No data can be displayed on the lcd. I used lcd3310WriteChar(), and it didn't work

Re: lcd3310

Posted: Sun Nov 17, 2013 7:27 am
by inmarket
I suspect you are using the uGFX driver as I don't think ChibiOS has any lcd drivers.
If that is the case, can you please repost this in the uGFX forum at http://www.ugfx.org/forum

Re: lcd3310

Posted: Sun Nov 17, 2013 1:29 pm
by part1zan_
No, I'm not using uGFX. I used this one, and somewhy it didn't work, though I made it compile by defining some of the GPIOs it needed.

Re: lcd3310

Posted: Sun Nov 17, 2013 1:33 pm
by part1zan_
After a while, I thought that the problem might be in SPI2 initialization. Here's the SPI config I used for SPI2:

Code: Select all

static const SPIConfig spi2cfg = {
   NULL,
   /* HW dependent part.*/
   GPIOB,
   12,
   SPI_CR1_BR_0 | SPI_CR1_BR_1 | SPI_CR1_CPOL | SPI_CR1_CPHA, // this line might be absent, nothing changes in that case
   0
};