Driving ILI9341 TFT Display with STM32F103C8T6 board.

Dependencies:   mbed mbed-STM32F103C8T6 UniGraphic

TFT Display ILI9341 driven by STM32F103C8T6 board

This is a fork of Geremia's UniGraphic Demo using his UniGraphic library.
For more details see the UniGraphic API documentation and ILI9341 Class Reference.

Schematic

/media/uploads/hudakz/stm32f103c8t6_ili9341_02.png

Wiring

STM32F103C8T6ILI9341
+5V<=>VCC
GND<=>GND
PA_15<=>CS
PA_12<=>RESET
PA_11<=>D/C
PB_5<=>SDI(MOSI)
PB_3<=>SCK
+5V<R1>LED
PB_4<=>SDO(MISO)
Revision:
3:61f96984ff5c
Parent:
2:8ab51242fa0e
--- a/main.cpp	Tue Feb 05 13:43:36 2019 +0000
+++ b/main.cpp	Sat Apr 25 15:07:44 2020 +0000
@@ -1,3 +1,4 @@
+#include "stm32f103c8t6.h"
 #include "mbed.h"
 #include "Arial12x12.h"
 #include "Arial24x23.h"
@@ -20,6 +21,7 @@
  
 int main()
 {    
+    confSysClock();     //Configure system clock (72MHz HSE clock, 48MHz USB clock)
     backlight = 1;
  
     tft = new ILI9341(SPI_8, 10000000, PB_5, PB_4, PB_3, PA_15, PA_12, PA_11, "tft"); // SPI type, SPI speed, mosi, miso, sclk, cs, reset, dc