Giter VIP home page Giter VIP logo

lua2rtt's Introduction

🎉 Lua2RTT 🎉

Build Status release

Lua2RTT是在RTThread3.0版本移植的Lua库, 目的是无缝嵌入RTT, 无需开发者去移植. 如果您觉得该库看得顺眼舒服,请捐赠颗小星星. 小星星就是更新的动力!!!

1. 效果图

效果图

2. 安装Lua2RTT

目前Lua2RTT库已经添加到RT-Thread官方pkgs包中, 可以直接在menuconfig在线包中直接使能.

  1. 在env中运行menuconfig.
  2. 进入RT-Thread online packages -> language目录.
  3. 开启Lua2RTT, 选择Submitted version(Lua2RTT库移植的发布版本)为lateset最新版本, 然后选择Porting Lua version(移植的Lua源码版本)为您想要移植的版本(目前支持5.1.4和5.3.4).
  4. 执行pkgs --update更新Lua2RTT包到你的bsp下面.
  5. 执行scons/scons --target=xxx, 进行编译生成工程, 下载运行.

安装流程

3. 卸载Lua2RTT

  1. 在env中运行menuconfig.
  2. 进入RT-Thread online packages -> language目录.
  3. 关闭Lua2RTT.
  4. 执行pkgs --update, 并输入Y表示同意删除pkg包文件.
  5. 执行scons/scons --target=xxx, 进行编译生成工程, 下载运行.

卸载流程

4. 注意事项

  1. 因为Lua源码使用了LIBC, 所以需要在RTT中添加LIBC支持(已经支持开启Lua2RTT配置自动配置LIBC, 无需手动添加).
  2. 当开发坏境是MDK时os.date不支持!格式化时间. 原因RTT的armlibc不支持gmtime函数. 待RTT源码处理该问题.

5. 教程推荐

  1. AlbertS 作者简书文章.
  2. Lua 5.1 参考手册中文版.
  3. Lua 5.3 参考手册中文版.

6. 欢迎加入.

非官方讨论腾讯QQ群: 289156309.

7. 感谢

  1. 该库基于 https://github.com/lua/lua 移植.
  2. 感谢Lua团队. 本移植是修改了部分原作者的代码针对RTT在线包实现的版本, 该仓库保留原作者的许可声明! 具体原作者许可请查看 https://www.lua.org/license.html, 移植代码部分保留 https://github.com/liu2guang/Lua2RTT/blob/master/LICENSE 许.

lua2rtt's People

Contributors

liu2guang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.