Hi,
a few days ago, I've bought a small 2" TFT display with an ILI9341 controller. In my case it's configured to use a four-pin SPI interface. As a start I'm trying to read the manufacturer ID, just to make sure the SPI connection is working. The procedure is described in the data sheet on page 91.
I'm using Python and spidev to communicate with the display but I'm not sure how to do it correctly.
I pull the DC pin to low to indicate a following data command, then I use xfer2 to send 0x04. Can I expect three bytes of data as a response then? And how do I read them?
I've already done some unidirectional (write only) SPI communication with some standard 2x16 character LCD display which works fine, but I'm absolutely clueless how to correctly receive data over SPI.
Thanks,
Martin