Giter Club home page Giter Club logo

luatos-esp32's Introduction

LuatOS For ESP32

esp32c3esp32s3

1、简介

尝试给ESP32适配一个LuatOS,只是为了学习,个人项目,希望有更多的朋友来一起贡献。

目前C3、S3基于 ESP-IDFV4.4.1

当前分支ESP32C3/ESP32S3,为主力版本。

本项目仓库只有两个: Gitee Github

如果你在其他仓库发现本仓库代码均为非本人授权许可。

项目目录结构:
├─components		(组件库)
│  ├─lua			(lua核心代码)
│  ├─luat			(luat移植层)
│  │  ├─freertos	(freertos移植层)
│  │  ├─include		(用户头文件目录)
│  │  └─port		(接口移植目录)
│  ├─led_strip		(ws2812库)
│  ├─libhelix-mp3	(mp3解码库)
│  ├─miniz			(压缩库)
├─demo				(lua示例)
├─doc				(开发相关文档)
├─img				(介绍用相关图片)
├─main				(c程序主入口)
├─patches			(补丁目录)
├─soc_tools			(用于打包luatos-soc的相关文件)
├─test				(测试部测试代码)
├─tools				(工具目录,包括下载打包脚本)
└─userdoc			(用户文档)
快速编译上手:
  1. 参考乐鑫文档安装ESP-IDF文档链接 ,国内用户可以选择Gitee上的镜像库 进行安装。
  2. 克隆本仓库和luatos主仓库 到同级目录下
  3. 进入LuatOS-ESP32仓库 执行idf.py set-target esp32c3 idf.py build进行编译
注:
1、如需打包soc文件,请进入tools目录查看Readme了解。
2、下载脚本建议使用tools中的esp32v3.py脚本操作,当然你也可以选择luatools。

2、参与方式

使用VisualStudio Code UserGuide-VSC

使用Clion UserGuide-Clion

欢迎提issue和pr帮助项目进步。

ESP32开发QQ群:667220396

LuatOS开发QQ群:1061642968

3、相关文档

API-DOC

Support

ESP32C3解锁GPIO11

进度更新中,欢迎提需求。

4、鸣谢

排名不分前后

  • LuatOS :合宙LuatOS是运行在嵌入式硬件的实时操作系统,用户编写lua代码就可完成各种功能

  • ESPRESSIF : 乐鑫科技,提供高性价比高可玩性的ESP32系列产品

  • Wendal :技术大佬,LuatOS领头人

5、LICENSE

本项目遵循 Apache License 2.0 开源。

6、Donators

如果你喜欢LuatOS For ESP32 , 要不给开发者来杯咖啡吧~

luatos-esp32's People

Contributors

chain01 avatar chenxuuu avatar cornworld avatar dozingfiretruck avatar dreamcmi avatar fantasygmm avatar itldg avatar jeremyhash avatar liulean avatar wendal avatar xiaohe4966 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

luatos-esp32's Issues

attempt to index a nil value (global 'lvgl')

I wanted to try out an ESP32C3 board with Air101 LCD extension that I got here.

I followed the instructions to flash here using Luatools:
image
I tried https://github.com/dreamcmi/LuatOS-ESP32/blob/master/demo/lvgl/main.lua (changed to lcd.init to st7735s) and https://gitee.com/openLuat/LuatOS/tree/master/script/turnkey/lcd-0.96-lvgl but both fail with attempt to index a nil value (global 'lvgl'):
image
Do I need to upload any other files?
I initially flashed the firmware like so:
image

官方开发版esp32c3+lcd启动最新源码编译的V004启动报错

首先非常感谢大佬提供的LuatOS及对应的esp32开发版,能降低嵌入式爱好者入门的门槛及成本。

目前我用lvgl,看到官方示例五位按钮事件需要自行处理,较为繁琐,可以注册输入设备,使用lvgl内置事件分发。

看到文档有对indev的支持,但是调用lvgl.indev_drv_register("pointer", "emulator")报错,提示没有这个方法。

随后就自己编译了这个项目master分支,上板运行报错,原始错误在另外电脑上,稍后补充。

我先用V003的分支,直接加上indev相关的API先打包自己用。

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.