当前位置:网站首页>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
边栏推荐
猜你喜欢
8.3 语言模型与数据集
Design of single chip microcomputer Proteus for temperature and humidity monitoring and alarm system of SHT11 sensor (with simulation + paper + program, etc.)
ASEMI三相整流桥和单相整流桥的详细对比
DVWA之暴力破解(Brute Force)Low-->high
Nacos uses demo as configuration center (IV)
关于UDP接收icmp端口不可达(port unreachable)
基于单片机的DS18B20的数字温度监控报警系统设计【LCD1602显示+Proteus仿真+C程序+论文+按键设置等】
Proteus simulation design of four storey and eight storey elevator control system, 51 single chip microcomputer, with simulation and keil c code
常见存储类型和FTP主被动模式解析
Proteus simulation design of DC adjustable regulated power supply (with simulation + paper and other data)
随机推荐
一款不错的工具:aardio
8.4 循环神经网络从零实现
爬虫练习题(一)
矩阵交换行列
kprobe 的 3 种使用
XX project structure notes
1分钟看懂执行流程,永久掌握for循环(附for循环案例)
SSH 通过跳板机连接远程主机
Introduction to loan market quotation interest rate (LPR) and loan benchmark interest rate
Unity_代码方式添加绑定按钮点击事件
Ali developed three sides, and the interviewer's set of combined punches made me confused on the spot
Logical volume creation and expansion
Preview CSV file
async void 导致程序崩溃
IE8 browser prompts whether to block access to JS script
JS key value judgment
On the insecurity of using scanf in VS
Branch statement of process control
C语言知识点精细详解——初识C语言【1】
C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【1】