In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to use the TouchGFX software package in RTThread. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
1. Introduction
TouchGFX is a software framework written by C++ based on STM32 hardware. Users who use ST chips can use touchgfx for free.
Touchgfx's official document portal: https://support.touchgfx.com/docs/introduction/welcome.
1.1 Directory structure
1.2 dependence
RT-Thread 4.0 +
C++
two。 How to use touchgfx2rtt package needs to select it in the package manager of RT-Thread. The specific path is as follows: RT-Thread online packages
Multimedia packages->
[*] touchgfx: a touchgfx package for rt-thread.
Then let RT-Thread 's package manager update automatically, or use the pkgs-- update command to update the package to BSP.
Check whether C++ support, SDRAM and LCD drivers are enabled in the project. If not, please enable them manually.
2.2 Open DMA2D and CRC peripherals in the project
2.3 if you use mdk for development, do not check the Micro LIB library, and the Micro LIB library does not support libc libraries. 2.4 if you use studio for development, you need to open the libc library, and note that you need to configure C++ compilation rule 2.5 to design UI.
Find ApplicationTemplate.touchgfx.part in the TouchGFX folder, open it with TouchGFX 4.15.0 Designer, and start working on UI design. After designing the UI, remember to update the project.
3. Matters needing attention
The current version of the package only supports three types of STM32F4xx STM32F7xx STM32H7xx chips and LCD with RGB interface.
3.1 how to change the screen
After changing the screen, you only need to modify the corresponding screen parameters.
Open ApplicationTemplate.touchgfx.part with a text document and adjust the resolution
Modify it, double-click to open it, and regenerate the UI project.
3.2 how to change the color depth
Only RGB888 24-bit color depth and RGB565 16-bit color depth are supported by default. Only two macros, LCD_BITS_PER_PIXEL and LCD_PIXEL_FORMAT, need to be modified.
Open ApplicationTemplate.touchgfx.part with a text document to adjust the color depth
Modify it, double-click to open it, and regenerate the UI project.
4. UI development and simulation 4.1 Simulation using TouchGFX 4.15.0 Designer
Open ApplicationTemplate.touchgfx.part, import routines, or design your own UI interface, and use TouchGFX 4.15.0 Designer to run the simulation.
4.2 Simulation using Visual Studio
Find simulator under the TouchGFX folder and open Application.sln. You can use Visual Studio to design UI and run the simulation.
After reading the above, do you have any further understanding of how to use the TouchGFX package in RTThread? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.