This example demonstrates how to use an TFT LCD display using the SPI.

Dependencies:   mbed

Fork of Nucleo_Ex01_TFT by woodstock .

Intro

This example demonstrates how to use an TFT LCD display using the SPI.

Parts

STM32 Nucleo F446RE
QVGA 2.2 TFT SPI 240x320 (ILI9341)
Register 100k ohm
Register 100 ohm
Breadboard
Wires

Wiring diagram

/media/uploads/beaglescout007/nucleo_ex01_tft.jpg This circuit diagram was created by fritzing.

TFT J2Nucleo
VCC3V3
GNDGND
CSPB_5(D4)
ResetPA_10(D2) Pull Up(100k)
D/CPA_8(D7)
MOSIPA_7(D11)
SCKPA_5(D13)
LEDLED-100ohm-3V3
MISOPA_6(D12)

https://youtu.be/vj4JuKe-D9E

Files at this revision

API Documentation at this revision

Comitter:
beaglescout007
Date:
Mon Mar 21 11:41:25 2016 +0000
Parent:
0:de7a10d9be52
Commit message:
TFT_GREEN value was fixed.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Mar 06 01:56:17 2016 +0000
+++ b/main.cpp	Mon Mar 21 11:41:25 2016 +0000
@@ -11,7 +11,7 @@
 
 #define TFT_BLUE    0x1F00
 #define TFT_RED     0x00F8
-#define TFT_GREEN   0x0004
+#define TFT_GREEN   0xE007
 
 /*-------------------------------------------------------------------*/
 /*  Write command                                                    */