teste LCD TFT I2C
Dependencies: mbed mbed-STM32F103C8T6 UniGraphic
Diff: main.cpp
- Revision:
- 3:61f96984ff5c
- Parent:
- 2:8ab51242fa0e
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