当前位置:网站首页>A good tool: aardio
A good tool: aardio
2022-04-23 14:29:00 【strongerHuang】
Focus on + Star sign public Number , Don't miss the highlights

source | Embedded hodgepodge
Today, I'll give you an active one 17 Development tools in :aardio.
Protagonist of this issue :aardio
aardio It belongs to a dynamic language with strong ease of use , But it's also a mixed language , Can be rare 、 It's very convenient to manipulate static types , So you can call C Language 、C++ And so on, static language API The interface function .
aardio Applied to desktop software development .aardio Has developed 17 year , Keep updating very actively .
aardio Characteristics :
Good architecture and grammar
Small 、 light 、 fast , Light and agile , Volume only 6.5MB, The cost of learning and using is very low
Glue ability is very strong
You can embed a lot of browser controls
Not just desktop software , It can also be used to develop websites
You can easily create programs by dragging and dropping traditional controls
aardio Official website :
https://www.aardio.com/
aardio Use
aardio To put it bluntly, it is a programming language , It's flexible and powerful . Let's briefly understand it through examples aardio.
First , from aardio Download it from the official website aardio Development kit :
aardio The development package is very small ! The contents are :
among , development tool aardio.exe Only 6MB! Compared with others such as Qt Creator、VS Just a few development tools G,aardio.exe Small is a big advantage .
aardio.exe The interface is as follows: :
aardio Focus on desktop software development . Let's see how to use it aardio To write a simple Serial port lighting upper computer . you 're right , We had this before based on QT Hands on development tutorial : Understandability | Teach you to write your first upper computer
This article is based on aardio To write a , Experience desktop software rapid development !
First , Designing interfaces using interface controls :
These controls are not dragged past . It is First click the left mouse button to select a control , Then in the design area Click the left mouse button to place the control .
then , Switch to code view and write code :
import win.dlg.message;
import win.ui;
/*DSG{
{*//*}}*/
// Serial port list
import sys.comPort;
var comPorts = sys.comPort.list();
mainForm.combobox.items = comPorts;
mainForm.combobox.selIndex = 1;
import sio;
var sioPort;
// Open the serial port
mainForm.openBtn.oncommand = function(id,event){
if(sioPort){
sioPort.close();
}
var err;
sioPort,err = sio.port(mainForm.combobox.selText);
if(!sioPort){
return mainForm.msgErr(err);
}
sioPort.ioctl(eval(mainForm.baudrateEdit.text),8,1);
mainForm.msgOk(" Port opened ",1000)
}
// Turn off the serial port
mainForm.closeBtn.oncommand = function(id,event){
if(sioPort){
sioPort.close();
mainForm.msgOk(" Port closed ",1000);
}
}
// Lighting
mainForm.ledonBtn.oncommand = function(id,event){
if(!sioPort){
mainForm.openBtn.oncommand();
}
if( !sioPort.writeHex("01") ){
return mainForm.msgErr(" fail in send ");
}
else {
return mainForm.msgOk(" send out ON success ",1000);
}
}
// Lights out
mainForm.ledoffBtn.oncommand = function(id,event){
if(!sioPort){
mainForm.openBtn.oncommand();
}
if( !sioPort.writeHex("00") ){
return mainForm.msgErr(" fail in send ");
}
else {
return mainForm.msgOk(" send out OFF success ",1000);
}
}
if(_ARGV.opt){
mainForm.edit.print(_ARGV.opt,_ARGV[#_ARGV]);
}
mainForm.edit.oncommand = function(id,event){
}
mainForm.static.oncommand = function(id,event){
}
mainForm.static2.oncommand = function(id,event){
}
mainForm.show();
return win.loopMessage();
The code is relatively short , Everyone should understand .
function :
test :
Program packaging :
Package and release the program , Just click this button , The generated executable does not depend on other files , A little strong ~
You can see , Before comparison Understandability | Teach you to write your first upper computer In a word , Use aardio It's a lot easier to write this on the computer . Whether from the amount of code 、 step 、 Program packaging .
From the perspective of my writing : Write Understandability | Teach you to write your first upper computer This article took me nearly a week's spare time ; It took only two days of spare time to write this article , Including understanding 、 Study aardio Time for ~
aardio As a programming language , It has a certain grammar . Related examples :
for example :
But I did C It should be easy for us to understand .
aardio It's also a glue language , It can embed many mainstream programming languages :
aardio call C Language functions :
aardio Although it is mainly used in desktop software development , but aardio It also contains many other contents :
Each piece of content has a wealth of examples , Interested friends can read and learn by themselves .
In this article 、 Lower machine demo, You can reply to key words in the background of official account. :aardio , Can get .
If you find the article helpful , Please give me a favor 、 Collection 、 forward , thank you !
------------ END ------------

● special column 《 Embedded tools 》
● special column 《 Embedded development 》
● special column 《Keil course 》
● Embedded column selection tutorial
Pay attention to the reply of the official account “ Add group ” Join the technical exchange group according to the rules , reply “1024” See more .


Click on “ Read the original ” See more sharing .
版权声明
本文为[strongerHuang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231423304514.html
边栏推荐
- Matrix exchange row and column
- 循环队列的基本操作(实验)
- Upgrade of openssh and modification of version number
- 修改Firebase Emulators的默认侦听IP
- Find daffodils - for loop practice
- Docker篇 (五) MySQL的安装
- Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
- JS format time
- 51 MCU flowers, farmland automatic irrigation system development, proteus simulation, schematic diagram and C code
- Detailed explanation of C language knowledge points -- first knowledge of C language [1]
猜你喜欢

After entering the new company, the operation and maintenance engineer can understand the deployment of the system from the following items

Proteus simulation design of four storey and eight storey elevator control system, 51 single chip microcomputer, with simulation and keil c code

交通灯系统51单片机设计(附Proteus仿真、C程序、原理图及PCB、论文等全套资料)

一款不错的工具:aardio

Nacos作为配置中心(四) 使用Demo

外包干了四年,废了...

C语言知识点精细详解——数据类型和变量【1】——进位计数制

查找水仙花数-for循环实践

sar命令详解

AT89C51 MCU digital voltmeter development, measuring range 0 ~ 5V, proteus simulation, schematic diagram, PCB and C program, etc
随机推荐
LLVM - 生成 if-else 以及 PH
Four ways of SSH restricting login
Web page, adaptive, proportional scaling
The initial C language framework is suitable for review and preliminary understanding
async void 导致程序崩溃
1 minute to understand the execution process and permanently master the for cycle (with for cycle cases)
source insight via samba
Qt界面优化:鼠标双击特效
交通灯系统51单片机设计(附Proteus仿真、C程序、原理图及PCB、论文等全套资料)
flannel 原理 之 子网划分
LLVM - 生成for循环
MCU function signal generator, output four kinds of waveforms, adjustable frequency, schematic diagram, simulation and C program
Solve the problem of SSH configuration file optimization and slow connection
Qt实战:云曦日历篇
ArrayList collection basic usage
Some little records~
C语言知识点精细详解——数据类型和变量【2】——整型变量与常量【1】
QT interface optimization: double click effect
全连接层的作用是什么?
顺序栈的基本操作