【Luat】1 语法和环境搭建

前言

学习luatos-esp32开发板和air551G。

0 esp32_git获取

https://github.com/dreamcmi/LuatOS-ESP32
获取ssh
在这里插入图片描述
报错
在这里插入图片描述
提示

The authenticity of host ‘github.com (20.205.243.166)’ can’t be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names

参考文章解决:Cloning into ‘order’… The authenticity of host ‘github.com (13.250.177.223)’ can’t be established.
git解决The authenticity of host ‘github.com (192.30.255.112)‘ can‘t be established问题

本地还有一个仓库,所以尝试生成第二个密钥
参考:Git在同一台电脑上连接多个仓库

命令来源于上述参考文件:
ssh-keygen -t rsa -f C:/Users/用户名/.ssh/id_rsa2 -C ‘xxx@xxx.com’

然后在自己的github中选择setting-ssh and GPG keys,添加New ssh key.
key来源于id_rsa2.pub文件,详见参考文章。

再回来执行克隆命令

git clone git@github.com:dreamcmi/LuatOS-ESP32.git

选择yes,然后可以在C:\Users\XXX.ssh中看到新创建的三个文件id_rsa2,id_rsa2.pub,know_hosts文件
在这里插入图片描述
至此,luatOS-esp32就复制成功。

1 lua语法了解

语法教学(强烈安利):
【无废话30分钟】Lua快速入门教程 –
https://www.bilibili.com/video/BV1vf4y1L7Rb
【连载中】Lua教程-进阶部分 –
https://www.bilibili.com/video/BV1WR4y1E7ud

luatos在线模拟器 –
https://wiki.luatos.com/_static/luatos-emulator/lua.html
语法参考手册 –
https://www.runoob.com/manual/lua53doc/contents.html

建议:可以跟着快速入门教程结合模拟器先熟悉一下lua的语法。当前只需要简单了解一下,后续有疑问可以再结合demo查看手册学习。

2 vscode安装lua插件 – 查看代码

环境搭建的视频教程:
Luat开发视频教程 – https://www.bilibili.com/video/av50827315
PS:建议当前先查看第一个视频(11分钟)。

需要已经装有vscode
在这里插入图片描述
使用手册https://marketplace.visualstudio.com/items?itemName=luater.luatide

注意需要trust,vscode的左侧才会弹出芯片图标(LuatIDE)
在这里插入图片描述
扩展
lua
lua Debug
luat
emLuaIDE
在这里插入图片描述

3 开发板资料

Air551G –
https://doc.openluat.com/wiki/21?wiki_page_id=2739
PS:这里包含原理图、封装库、开发手册以及调试工具,建议保存。
在这里插入图片描述
Air551G电路图

重点关注它的5个接口

另外的开发板及外设
• ESP32-C3 – https://wiki.luatos.com/chips/esp32c3/index.html#
• 1.8寸TFT LCD 分辨率128x160 – https://doc.openluat.com/wiki/21?wiki_page_id=2650
• 三维角度传感器6DOF三轴加速度计电子陀螺仪 – https://doc.openluat.com/wiki/21?wiki_page_id=2706

4 Air551G调试

调试参考文档 –
https://doc.openluat.com/wiki/21?wiki_page_id=2757#_15

调试手册:Air551G开发板使用手册V1.0.pdf
调试工具:NaviTrack_v2.6.rar(以管理员身份运行)

调试步骤后续再补。

5 下载步骤

LuatOS文档:https://wiki.luatos.com/

下载tool(LuaTools): https://www.openluat.com/Product/software/luatools.html
串口工具:http://www.elecfans.com/soft/58/62/2020/202010281349028.html

烧录教程:https://wiki.luatos.com/boardGuide/flash.html
下载步骤后续再补。

6 其他资料

Luat开发视频教程

语法教学:(强烈安利)
【无废话30分钟】Lua快速入门教程 – https://www.bilibili.com/video/BV1vf4y1L7Rb
【连载中】Lua教程-进阶部分 – https://www.bilibili.com/video/BV1WR4y1E7ud

luatos在线模拟器 – https://wiki.luatos.com/_static/luatos-emulator/lua.html
语法参考手册 – https://www.runoob.com/manual/lua53doc/contents.html

Lua 5.3 欢迎你 – https://www.runoob.com/manual/lua53doc/
语法 – https://www.runoob.com/lua/lua-tutorial.html
文档 – https://wiki.luatos.com/
文档2 – https://wiki.openluat.com/
合宙官网 – https://www.openluat.com/welcome
产品栏 – https://www.openluat.com/Product/

luatools – https://www.openluat.com/Product/software/luatools.html
sscom – http://www.elecfans.com/soft/58/62/2020/202010281349028.html
两个官网 – https://wiki.luatos.com/

7 实际项目使用

开发板信息
https://doc.openluat.com/wiki/21?wiki_page_id=2757
https://wiki.luatos.com/chips/esp32c3/index.html

EVB_Air551G – https://www.openluat.com/product_center/product_detail?id=47
esp32 – https://wiki.luatos.com/chips/esp32c3/index.html#

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值