当前位置:网站首页>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
边栏推荐
- JS progress bar, displaying the loading progress
- C语言知识点精细详解——数据类型和变量【2】——整型变量与常量【1】
- 流程控制之分支语句
- DVWA之暴力破解(Brute Force)Low-->high
- Use of ansible and common modules
- C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【2】
- Find daffodils - for loop practice
- 交通灯系统51单片机设计(附Proteus仿真、C程序、原理图及PCB、论文等全套资料)
- 1 minute to understand the execution process and permanently master the for cycle (with for cycle cases)
- 分分钟掌握---三目运算符(三元运算符)
猜你喜欢
Multisim Simulation Design of DC adjustable regulated power supply of LM317 (with simulation + paper + reference)
L'externalisation a duré quatre ans.
Proteus simulation design of four storey and eight storey elevator control system, 51 single chip microcomputer, with simulation and keil c code
A blog allows you to learn how to write markdown on vscode
Proteus simulation design of DC adjustable regulated power supply (with simulation + paper and other data)
Design of single chip microcomputer Proteus for temperature and humidity monitoring and alarm system of SHT11 sensor (with simulation + paper + program, etc.)
KVM learning resources
一个月把字节,腾讯,阿里都面了,写点面经总结……
AT89C51单片机的数字电压表开发,量程0~5V,proteus仿真,原理图PCB和C程序等
Notes on Visio drawing topology
随机推荐
Flop effect
JS recursion (1)
数组模拟队列进阶版本——环形队列(真正意义上的排队)
555定时器+74系列芯片搭建八路抢答器,30s倒计时,附Proteus仿真等
Sed learning for application
DVWA之暴力破解(Brute Force)Low-->high
8.2 文本预处理
Qt实战:云曦聊天室篇
直流可调稳压电源的Proteus仿真设计(附仿真+论文等资料)
Nacos uses demo as configuration center (IV)
51单片机的花卉、农田自动浇水灌溉系统开发,Proteus仿真,原理图和C代码
I thought I could lie down and enter Huawei, but I was confused when I received JD / didi / iqiyi offers one after another
Wechat applet rotation map swiper
API gateway / API gateway (IV) - use of Kong - Integrated JWT and fuse plug-in
八路抢答器系统51单片机设计【附Proteus仿真、C程序、原理图及PCB文件、元器件清单和论文等】
Proteus simulation design of DC adjustable regulated power supply (with simulation + paper and other data)
四层和八层电梯控制系统Proteus仿真设计,51单片机,附仿真和Keil C代码
Docker (V) MySQL installation
TLS/SSL 协议详解 (28) TLS 1.0、TLS 1.1、TLS 1.2之间的区别
ASEMI三相整流桥和单相整流桥的详细对比