A Professional Manufacturer of Smart Interactive Screens For More Than 10 Years
I ordered 240x320 pixels 2
The 2 inch tft LCD display on Ebay costs £ 3.
This is very cheap compared to similar displays from some Western companies.
The only problem is there is no guide on how to make it work!
When I figure it out, I think I'll make a note for anyone who has the same problem.
It turns out to be simple.
This tutorial does not show you how to use the SD card feature.
Ethics: some users complain that I am using the adafruit library and I do not support adafruit.
I would like to point out that adafruit has provided their library under the MIT license and all others say: Permission is hereby granted free of charge to anyone who has obtained a copy of this software and related documentation files (the "Software")
, Unlimited trading in software, including but not limited to the right to use, copy, modify, merge, publish, distribute. . .
You can check the entire license if you are interested.
I understand that it means that adafruit is very happy that their code is edited to drive a cheap Chinese monitor and it makes no sense to write my own code to drive it.
If you have an issue with morality, what I would like to point out is that my actions are completely legitimate, so please continue to rant elsewhere. Thankyou. 2.
2 "serial 240x320 spi tft LCD module display ili93 40c Arduino compatible micro controller-
I converted to 3 with something from the breadboard Arduino. 3V logic -
I power my breadboard Arduino with 3.
Although I ordered my components separately, the 3VMy setup is a bit like this.
Fortunately, Adafruit has a very similar presentation for which they have written libraries.
I have a monitor powered by the ili93 40 driver, so I installed the library, so I'm assuming that if you have a monitor for the ILI9341 driver, its working principle is linked to me.
I haven't seen any other drivers used, but if you do, I would suggest searching for the Adafruit library on github.
No matter what driver the display uses, you will need to install the Adafruit GFX Library.
Instructions on how to do this are on the linked github page.
The Arduino IDE is updated and it doesn't like to have hyphen/underscore in the folder name of the library.
If you receive an error message complaining about these characters, try removing them from the folder name (
But not their name. h and . cpp files).
The Ili93 40/1 Library contains a sample sketch called a graphic test.
You have to connect the display according to the pin definition there.
Originally I wrote when I wrote this Instructable: I wanted to emphasize that this monitor uses 3.
3 v logic, will not work if 5 v is used.
This is the information I found on a certain Forum and with it my monitor will work: I now have multiple monitors from different sellers (
Maybe different factories).
I noticed that some of them also use 5 v logic.
As marked on my display module, the connection is-
13 SDO pin of Arduino (MISO)-
Arduino pin 12SDI (MOSI)-
Arduino pin 11CS-
Arduino pin 10 D/C-
Arduino pin 9 reset-
Arduino pin 8 LED-3. 3V / 5VVCC -3. 3V / 5VGND -
The GNDUpload sample sketch and give it a try, the sketch shows you how to control the display.
You may have to fiddle with the voltage for your specific model.
You have all kinds of choices here.
Potential voltage divider on each pin, level converter, or simply power arduino with 3. 3v supply (
This is probably the simplest, maybe a little temperament).
See the notes for more information.
In addition, there is information on how to use the library on the adafruits website.
Here you can find a data table where you can do what you like with this Instructure without having to contact me first.