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)

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Sat Apr 25 15:07:44 2020 +0000
Parent:
2:8ab51242fa0e
Commit message:
Bluepill driving an ILI9341 SPI TFT display.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-STM32F103C8T6.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 8ab51242fa0e -r 61f96984ff5c main.cpp
--- 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
diff -r 8ab51242fa0e -r 61f96984ff5c mbed-STM32F103C8T6.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-STM32F103C8T6.lib	Sat Apr 25 15:07:44 2020 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#727468adfd1d
diff -r 8ab51242fa0e -r 61f96984ff5c mbed.bld
--- a/mbed.bld	Tue Feb 05 13:43:36 2019 +0000
+++ b/mbed.bld	Sat Apr 25 15:07:44 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file