jarekl Posted March 23, 2014 Report Share Posted March 23, 2014 I have a display with the ILI9325C controller that I would like to use but I need to access it over the SPI interface.It seems similar enough to the ILI9325 (some register values differ) so that part of the driver maybe already works but SPI doesn't.Question then, how much of an effort is it to add SPI to this driver? Which files should I start to look into to make this happen? Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted March 23, 2014 Report Share Posted March 23, 2014 The interface is abstracted inside the board file. They are named as board_XXX.h where XXX is the controller type and they can be found in the /boards directories. You can take a look at some of the existing SPI board files to see how it could or should be done (They are currently all ChibiOS/RT only). Assuming you're familiar with SPI, it shouldn't take too much effort.Feel free to ask any questions should you face problems.~ Tectu Link to comment Share on other sites More sharing options...
xlh1460 Posted March 29, 2014 Report Share Posted March 29, 2014 Hi, I probably have the same display. HY28B. It turns out that out of 3 that I bought, 2 have the ILI9325 and one appears to have an ILI9328.It seems that both use the same initialization routine.I have come up with the following driver files based on some existing drivers and samples from the supplier. Link to comment Share on other sites More sharing options...
inmarket Posted March 30, 2014 Report Share Posted March 30, 2014 Nice work.Looking at the repository we now seem to have 3 drivers that handle the ILI93xx range...The repository ILI9320 driver (which also seems to handle 9325's)The repository ILI9325 driver (based on chinese code?)Your driver.As I do not have one of these particular displays, could you please have a look at the 3 drivers and see if it is possible to easily integrate them into a single driver or at least tell me which is the best so that I can remove the duplicates from the repository.Also, what board was your board file for? I will then add it to the appropriate directory in the repository.Many thanks for your contribution. Link to comment Share on other sites More sharing options...
xlh1460 Posted March 31, 2014 Report Share Posted March 31, 2014 I tested this driver with the stm32f4 discovery board as well as the STM3241G EVAL board.The former with the HY28C display with either a 9325 or 9328 chip and the latter with it's mounted LCD which reports a 9325 chip.I haven't done extensive testing and I don't think I would comfortable saying that one of the drivers is better than the others.Thanks. Link to comment Share on other sites More sharing options...
jarekl Posted April 16, 2014 Author Report Share Posted April 16, 2014 Hi, I probably have the same display. HY28B. It turns out that out of 3 that I bought, 2 have the ILI9325 and one appears to have an ILI9328.It seems that both use the same initialization routine.I have come up with the following driver files based on some existing drivers and samples from the supplier.[attachment=0]ILI9325.zip[/attachment]I hope they work for you as well.How do you know which driver is used? The only information I have is from one web page that claims the driver is ILI9325C. Link to comment Share on other sites More sharing options...
xlh1460 Posted April 17, 2014 Report Share Posted April 17, 2014 You might want to have a look at this and give it a try. It will likely get you up and running:http://ugfx.org/forum/viewtopic.php?f=23&t=64&start=10#p535 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now