====== ILI9341 TFT LCD 2.8" ====== ===== Description ===== Écran TFT de 2.8" de diagonale, tactile (résistif) et équipé d'un lecteur de carte SD. ===== Bibliothèques ===== 2 possibilités : - [Bibliothèque Adafruit](https://github.com/adafruit/Adafruit_ILI9341) ; nécessite également la bibliothèque [GFX-Library](https://github.com/adafruit/Adafruit-GFX-Library) - Bibliothèque tierce :[TFT ILI9341 ESP](https://github.com/Bodmer/TFT_ILI9341_ESP) - Préférer celle-ci : [TFT_eSPI](https://github.com/Bodmer/TFT_eSPI) => compatible platform.io, et adaptée à l'ESP8266 (dont Wemos D1 Mini) ! ===== Connexion Wemos D1 Mini ===== {{::mytouchspishield.png|}} Les connexions spécifiques au touchscreen sont notées T_* ; On note que les pins MISO, MOSI et CLK sont communs, seul CS (Cable Select) est unique. Au final, tous les I/O d'un Wemos D1 Mini sont ocucpés, sauf D0, D3 et A0. NB: la définition des pins CS (Cable Select), DC (Data Command) et RST (Reset) se trouve dans le fichier User_Setups/Setup1_ILI9341.h : #define TFT_CS PIN_D8 // Chip select control pin D8 #define TFT_DC PIN_D3 // Data Command control pin #define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line) //#define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V Pour être en conformité avec le schéma ci-dessus, il faut donc modifier son contenu comme suit : #define TFT_CS PIN_D8 // Chip select control pin D8 #define TFT_DC PIN_D4 // Data Command control pin #define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V pour le Touch, on a : * T_IRQ sur D1 * T_DO sur D6 * T_DIN sur D7 via SDI(MOSI) * T_CS sur D2 * T_CLK sur D5 via SCK ===== Liens externes ===== http://embedded-lab.com/blog/tutorial-7-esp8266-ili9341-tft-lcd/