0

I have a 240x320 2.8" touchscreen, with "driver IC: ILI9341". It seems to use a SPI interface. How to connect it to the Pi (which pins to which pins of the GPIO?) and how to use it, e.g. from Python to display some text?

enter image description here

Photo of the screen itself:

  • As a minimum you need to find the model number of the display driver chip and add that information to your question. Don't expect others to follow links to find relevant information. – joan Oct 5 '16 at 9:58
  • I added the reference @joan : Driver IC: ILI9341. – Basj Oct 5 '16 at 11:05
2

I have a similar display for one of my projects. As for the jumper wires, i connected them like this:

  • Voltage at the Common Collector (vcc) -> pin 1;
  • Ground (gnd) -> pin 6;
  • Chip Select (cs) -> pin 24;
  • Reset -> pin 16;
  • Data Command (DC/RS) -> pin 15;
  • Serial Digital Interface (SDI/MOSI) -> pin 19;
  • Clock (SCK) -> pin 23;
  • Light Emitting (LED) -> pin 17;

I also used this library to draw and display: https://github.com/adafruit/Adafruit_Python_ILI9341

Hope this helps

  • Thanks a lot @ilyabogackiy. I will test that this evening. As I can see this Python code only offers display, but no "touch" (or am I wrong?). What do you use for touch ? – Basj Oct 5 '16 at 15:39
  • You are right. But unfortunetaly, my project has no touch functionality, only drawing and display. But you can try this library: github.com/BLavery/lib_tft24T There will be need for additional wiring logic though, make sure you read github.com/BLavery/lib_tft24T/blob/master/README.md – ilya bogackiy Oct 6 '16 at 15:29
0

I know that this is an old post but I have the same LCD and used Brian Lavery's python driver as suggested in the comments above. I modified his code a bit to make it work "better". If anyone is interested with some step-by-step guide, you can read it at https://behindthesciences.com/electronics/connecting-ili9341-SPI-TouchScreen-lcd-to-a-raspberry-pi-in-python/

Happy programming! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.