HY28B SPI/Serial Display

Folks,

I have purchased the HY28B display as per the link below, this display uses the ILI9325 controller and has ability to interface via SPI/ 8 bit / 16 bit.

I have previously used the UFTF lib to sucessfully configure another display that uses the ILI9325 controller with an 8 bit interface, however after implementing UTouch this left me with little usable pins, hence I would like to get the above display working via SPI if I can, however it would appear that UTFT only supports this controller (ILI9325C) in 8 bit mode, no serial support.

Anyone have any thoughts on how to get this working, or can I use a nasty hack similar to what is alluded to in the link below for the 1.5" TFT that uses the LPH9135 controller ?

http://www.mathias-wilhelm.de/arduino/beispiele/lcd-graphic-displays/

Thanks in advance for any suggestions!

BR Peter.

I'm sorry but I don't know what the difference is between SPI 8-bit and SPI 16-bit as it relates to
interfacing techniques. If you have a link to a page that explains it maybe I can follow your discussion.

At the weekend i was looking at the ILI9325 SPI protocol. Now looking at the PCF8833 (which is the controller for the LPH9135) i would say that the SPI protocol is totally different.

I did also look at UTFT.h: The ILI9325 is only supported in 8 Bit or 16 bit parallel mode.

All in all, it seems that UTFT does not support your display in SPI mode.

Oliver

Oliver I think you are correct regarding the PCF8833 protocol, I did find a custom lib for the ILI9320 which has got to be very similar.

http://src-one.com/dev/ili9320_test.ino

Checking....

BR Peter.

Nice finding, but i think this is far away from a usefull library :frowning:

Oliver

Well between the glcd.c source that can be downloaded for the display and the custom lib for the 9320 I should be able to cobble something that works..... I note considerable similarity between the two...

P.

Your pretty optimistic for a "Newbie"...

Oh I have been tinkering with Arduino's and Raspberrys for over a year now and I have done bits of C programming on and off for years. Didn't really have a need to join the forum till now.... thought it might be a good place to fish for some info on this topic.......

Well it works via SPI no problem, very basic test and apologies for the poor video...

Next I will see if I can get UTouch working with the ADS7843.

btw - it's hooked up to a Moteino which is an Arduino clone, it runs at 3.3v so saves messing around with logic level converters at this stage.

BR Peter.

I bought the same LCD, but on the page 2.8 Touch Screen TFT LCD with all interface [HY28B] - US $12.00 : HAOYU Electronics : Make Engineers Job Easier there is an archive with examples. I think can be ported to Arduino that code.

I will try to do that, and post it here or to a public repository ...

If you did that already, please post here :slight_smile:

Meanwhile i think the display is also supported by UTFT.

But I also started to work on a lib for this kind of displays:
http://forum.arduino.cc/index.php?topic=214966.0

Oliver

bauderline:
Well it works via SPI no problem, very basic test and apologies for the poor video...

http://youtu.be/OWCfU--bXUI

Hi Peter,

Do you have any library or sample code you used to get the HY28B working via SPI?

Since 2 days i am working on this devices, but it is not working.

I have attached my code. I am running out of ideas.
IM0=0, IM1=0, IM2=1 (SPI)

I took the code from the example code from here: 2.8 Touch Screen TFT LCD with all interface [HY28B] - US $12.00 : HAOYU Electronics : Make Engineers Job Easier and converted this into Arduino code. I am using an Arduino Due (to avoid level shifting).

Of course i do no know if the code is correct.

Is there any Arduino User who was able to use this display in SPI mode?

Oliver

ili9325spi.ino (6.56 KB)

Have a look at my video on youtube for the HY28B, I have referenced a link to the source code in the description....