Getting started
For novices, here is an introductory guide.
Tools
- Before starting to use our screen, we must first use the Install ok;
- Open the tool, and simply get familiar with Development Environment, you can try Create a new project,browse what is there, and don’t have to delve into the details inside;
- There is nothing on the newly created project UI. We can drag and drop a text control on it, and then compile、run to our See the effect on the screen; Note: If your machine is a wifi version, you must configure the ADB IP to download normally; refer to the document;
- We have provided a large amount of Sample code, select the code package of the corresponding platform size, download it, unzip it, and import into the tool; there are many projects, these are behind The chapter will introduce in detail, here we can choose the example we are interested in Run to see the effect on our screen;
At this point, I believe you will be able to use the simple tool;
Rules
After getting familiar with the tools, let’s take a look at the development rules of this screen;
- Understand the directory structure of the project, you can know what the project contains, and in which directory our code, UI and resources are stored;
- Next, let's take a look at what content is automatically generated by the tool, what is the correspondence between the UI file and the source code and the control naming rule on the UI; After understanding these, we know where our code needs to be filled in and how to operate the controls;
Control articles
The development interface is inseparable from the use of each control. In the navigation bar of the document, there is a special chapter to introduce the use of each control —— Control Introduction;
Serial port
- First, we must know the communication model;
- Then try it out according to the provided case, and then add some protocols and functions on this basis;
- Then go to study the realization of communication framework;
Upgrade
There are two upgrade methods:
- Make image file —— update.img file; in this way, the program is solidified into the machine, and the program is still there when power is off. Pay attention to the normal download The difference between debugging; this method is also our most commonly used;
- Make a flash card —— format the whole machine; the system has a new version update, we will officially provide the corresponding sd file, make it into a flash card and flash the machine to upgrade; like: the system can’t turn on, The system needs to support new functions or fix related bugs, etc., in these cases, you need to flash the machine;
Debugging
Currently, the program can only be debugged by Add Log;
Module articles
Hardware
Question
Here are some common problems and solutions;