After several days of hard work, the transplant was finally successful. Now I record the problems I encountered.
step by step,
1. First, make the hardware and drivers work. I found an old board, soldered the GT32L32 to the board, and connected it to the spi2 port of the motherboard. Install the steps on the Internet to transplant the driver font library. Run it first to see if Chinese characters will appear? ... Of course not, the expectations are too high. Next, I started to find the problem and found that there was a problem with the address calculation of the font chip. I quickly corrected it and tested it again, and read out the font information. In order to verify whether the reading is correct, I manually translated the data into binary code and clicked it on the font model. Wow! It is correct, incredible.
2. Move the driver to ucgui. Try to display it on ucgui first. Don't be fanciful. You need to walk the road yourself and split the mountain yourself. Now start to find the problem. After checking, I found that the position of the word display is wrong, x=-139. If you change x=10, the Chinese characters will be displayed, which means the coordinates are wrong. Where do the coordinates come from? After careful inspection, I found the function
The most critical statement in
There is this (c-pProp->First).
So you need to transplant the font
GUI_FLASH const GUI_CHARINFO GUI_FontHZ16_CharInfo[] = { } Copy 93 in the array.
Run it again, and the beautiful Chinese characters are displayed! It's done, hahaha, let's laugh.
After the external font library was successfully transplanted, a shortcoming was found. When using the ASC characters in the external font library, one character was up and the other was down, and it was crooked. After analysis, it may be necessary to define the width of GUI_CHARINFO in the font library, or it may not be necessary.
Decided to use the font library in the system,
GUI_FLASH
};
The third parameter is the index pointing to the system's font information.
And the bold font is defined. The font library is transplanted.
I plan to add pinyin input method when I have time in the future: the initial idea is:
Define an array pyArr in the software
In the font library, you can customize the Chinese character area code for the pinyin a, the area code for ai... The area codes of all Chinese characters are saved in one space in the font library.
When you input a pinyin in the software, for example, "bo", find the record of the pinyin in the array pyArr, and take out this series of Chinese character area codes according to the font address and the number of pinyin characters and put them into the array
Previous article:C language keyword - static
Next article:Several concepts that should be understood in the early stage of microcontroller development
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- UN Secretary-General Kofi Annan has clearly expressed his support for Japan to become a permanent member of the UN Security Council.
- Good news! The website's PAGERANK has reached 5!
- Design of electronic dimming ballast based on PSoC CY8C26233
- Consulting circuit!!!
- How to use the Pioneer graphical pin configuration tool
- Research on red signal identification in computer video information leakage
- Annoying Technology 3
- Xianji official engineer's dry goods: quickly familiar with the use of HPM6750 PWM and HPM_SDK Driver API (lighting)
- Check it out: Things that ST New Chinese official forum doesn’t want to tell netizens
- Why does the resource report show that one LUT is consumed, but the RTL view shows two?