![]() Another library from the wiki page is the TOUCH library. I only choose the part that we need to use the most in many applications like writing string, displaying image and drawing symbols. This driver is built from the provided source code in the page. The most important library for this project is obviously the ILI9341_Driver. And that’s it for running the example.įor further understandings, let’s dive into the source code. Wait for it to finish and upload it to the board by right clicking the folder, choose Run As and then click Ac6 STM32C/C++ Application. Then build the program by right click on the folder you just open (TFTLCD) and choose Build Project. It will automatically be open in your IDE. ![]() After installing and open the program, go to the source code you have just downloaded and double click the. )įor this project, I recommend using the System Workbench for STM32 for coding and building the code. The connection between LCD and STM32F4E-Discovery is as below. This sequence is applied for all communication between MCU and ILI9341. Each sequence starts when you send a command to ILI9341 and then some parameters to follow up. The “start sequence” includes many other sequences which are also defined in the datasheet. But the most important thing is that we have to establish a start sequence in order for this LCD to work. More details can be found in the official document of ILI9341. This LCD uses ILI9341 as a single-chip SOC driver for a display with a resolution of 240×320. SPI is short for Serial Peripheral Interface which, aside from two data lines, also has a clock line and select lines to choose between devices you want to communicate with. ![]() But, a little knowledge about this protocol does not hurt anyone. For STM32 users, HAL Library has already implemented this protocol which makes this project easier for us. You can find all details about this LCD from this page: īecause there aren’t a lot of instructions for using this LCD with STM32 board, I am going to write a complete guide for this LCD.įirst thing first, this LCD use SPI as the main communication protocol with your MCU. For this post, let’s focus on how to display what you want on the 2.8″ LCD. I also have another 16-bit Parallel TFT LCD but it will be another story for another time. The LCD I am using is a 2.8″ TFT LCD with SPI communication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |