Giter Club home page Giter Club logo

luatos's Introduction

LuatOS logo

star fork license

air101 air105 air100st air640w win32 pico

LuatOS-SoC是一款实时操作系统,用户编写Lua代码就可完成各种功能, 仅需极少的内存和Flash空间

  1. 基于Lua 5.3.x脚本编程,无需编译,把Lua文本文件下载到设备即可完成开发
  2. 低内存需求, 最低32kb ram, 96kb flash空间
  3. 硬件抽象层兼容M3/armv7/risc-v/win32/posix等等,具有强大的扩展性
  4. 可测试,可模拟,可裁剪,可扩展, 提供高效的开发效率
  5. 基于合宙深耕的Lua-Task编程模型,实现异步/同步无缝切换

代码示例节选

做一个灯神(点亮并闪烁一个LED灯)

local sys = require("sys")

-- 把GPIO19设置为输出模式,上拉,初始电平为低电平(0代表低电平,1代表高电平)
local netled = gpio.setup(19, 0, gpio.PULLUP)

sys.taskInit(function() --(LuaTask的task模式,对应协程)
    while 1 do
        netled(1) -- 输出高电平
        sys.wait(500) -- 等待500ms(LuaTask异步休眠)
        netled(0) -- 输出低电平
        sys.wait(500) -- 等待500ms(LuaTask异步休眠)
    end
end)

-- 主循环, 必须加
sys.run()

如何使用LuatOS-SoC

  1. 首先, 购买开发板(Air101/Wifi / NB-IOT)
  2. 然后, 下载固件包,按压缩包里的文档进行刷机
  3. 开始愉快地玩耍(或者放着积灰...)

QQ群: 1061642968 和 钉钉群


资源


使用到的开源项目

免费服务

更多项目

  • iRTU 开源DTU/RTU解决方案
  • Luat_Lua_Air724U 市面上最畅销的4G Cat.1模块的Luat固件
  • llcom 可运行lua脚本的高自由度串口调试工具
  • irtu-gps 基于iRTU项目,实现GPS数据的接收和展示
  • luatos-boards LuatOS系列开发板和扩展板

总体架构

总体架构

授权协议

MIT License

luatos's People

Contributors

wendal avatar dozingfiretruck avatar chenxuuu avatar allewalker avatar zozoh avatar wingpengfei avatar chain01 avatar dreamcmi avatar hhaarryy3388 avatar chenlong3388 avatar snailbao avatar findlayfeng avatar pangwu86 avatar sum411120 avatar xiaofeihe avatar doudouladou 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.