Giter VIP home page Giter VIP logo

stm32f4_tft_example_cpp's Introduction

STM32F4_TFT_EXAMPLE_cpp

This project is for driving TFT screen which has ILI9341 driver. The code written on cpp language with stm32f4 micro controller. The code background created on CubeMx program which provided by ST company The micro controller is STM32F407VGTX LQFP100 The program written in Cpp language with Keil-mVision IDE. To able to write Cpp code on STM32Fxx micro controllers do following

1) Create a project on CubeMX program 
2) Adjust necesarry peripherals and pinouts (UART, SPI, GPIO, TIMER etc)
3) Compile project 
4) For Cpp change main.c with main.cpp file 
5) Add extra files with the .cpp extension such as ILI9341_GFX.cpp
6) Compile project and run

NOT: For tft adjust SPI 1 Half-dublex Master The TFT pinout and the connection diagram as follows: ON TFT ON STMF4-Discovery

  1. VCC Connect to 3.3 pin
  2. GND Connect to GND
  3. CS Connect to PC5 as GPIO_Output
  4. RESET Connect to PB0 as GPIO_Output
  5. AO Connect to PC4 as GPIO_Output
  6. SDA Connect to PA7 as SPI1_MOSI
  7. SCK Connect to PA5 as SPI1_SCK
  8. LED Connect to 3.3 pin

NOT: In the begenning of program there are 3 macro definition just un command the one which you want to test by default TEST_ANALOG_METER is on uncommand

//#define TEST_TFT_RINGMETER

//#define TEST_TFT_PIE_CHART

#define TEST_ANALOG_METER

discvoerydiagramtft

stm32f4_tft_example_cpp's People

Contributors

candan26 avatar

Stargazers

 avatar

Watchers

 avatar

stm32f4_tft_example_cpp's Issues

We need to change color format of screen

In the code the color of screen looks like pale however, in other versions the color segments which shown with "Arduino" or other micro controllers ,looks like more live. I believe this is because of color pixel range however so for I could't solve this issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.