I am new to lpc1768, i facing problem in how to start interfacing TFT mr024-9325-51p 2.4" DISPLAY . please help me in that. if anybody provide example code that will help me alot. thank you.
Hi,
Could you copy and paste what error messages you have got?
The library on mbed website is based on mbed libraries. For example, each of the control pins on the SPI are declared as C++ objects and you might need to port them to use it in your environment.
regards,
Joseph
While build my code in Coocox IDE I am getting these errors which are in screen shots .
Instead of just taking all the file from the mbed website and try to compile them, please do it step by step:
1) System boot and initialization - you need to get to the stage that you can blink an LED first. I hope you have such setup already. And hopefully you know what clock frequencies the processor and the peripheral system are running at. You need to get this done before moving on to step two.
2) SPI hardware driver - this is not shown in the mbed website as this is built-in to their library.
3) TFT driver - once you have the SPI driver working, then you can built your TFT driver using it.
The file https://os.mbed.com/users/frankvnk/code/SPI_TFT_ILI9320/file/2519f2e680af/SPI_TFT_ILI9320.cpp/
show you the initialization steps (tft_reset()) and control codes for driving the TFT, but you can't do this until you have step 2 sorted.
As you noticed, the code use a number of objects (_spi, _cs), and the objects are defined in other library file. These need to be ported as your Coocox environment don't have these libraries. And I don't know why you project included MPS2 files as this is a completely platform (one of the error screens showing that you have some files for MPS2).
So to continue:
- strip down the project to a smaller size first
- then locate SPI driver for LPC1768 (I don't know if CooCox include this in their environment. If not, you need to search for LPC1768 SPI examples on the web to get SPI interface working first).
- then port the LCD driver code.
Sir i am not understanding what is porting , could u please send me the code for ILI9325 LCD which can run in Coocox IDE.
Regarding porting, please have a look as
https://en.wikipedia.org/wiki/Porting
Unfortunately I don' have the same hardware platform and tool environment so cannot give you any read-to-use codes.