Lua RTOS

luartos
Posts: 16
Joined: Wed Nov 23, 2016 7:17 pm

Lua RTOS

Postby luartos » Wed Nov 23, 2016 7:43 pm

We are glad to announce a preview of Lua RTOS for ESP32. Lua RTOS is the main-core of the Whitecat ecosystem, that is being developed by a team of engineers, educators and living lab designers, designed for build Internet Of Things networks in an easy way.

There are many things to do, but for the moment the following is available:

* Lua 5.3.2 interpreter at the top
* Lua Threads
* LMIC LoRa WAN stack
* GPIO driver
* SPI driver
* SD Card driver
* FAT files ystem
* SPIFFS file system
* TFT ST7735 driver

Lua RTOS is available as an esp-idf component in https://github.com/whitecatboard/Lua-RTOS-ESP32

Best regards,

Lua RTOS team

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Lua RTOS

Postby WiFive » Wed Nov 23, 2016 10:21 pm

Thanks for sharing. Maybe should be in the Showcase forum?

luartos
Posts: 16
Joined: Wed Nov 23, 2016 7:17 pm

Re: Lua RTOS

Postby luartos » Thu Nov 24, 2016 12:55 pm

You are right.

Post have been submitted to Showcase forum.

Thanks,

Lua RTOS team

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Lua RTOS

Postby ESP_Angus » Thu Nov 24, 2016 9:36 pm

Awesome project, Lua RTOS team! Nice work.

For clarity, I've moved the original topic here and removed the duplicate.

luartos
Posts: 16
Joined: Wed Nov 23, 2016 7:17 pm

Re: Lua RTOS

Postby luartos » Tue Nov 29, 2016 10:41 am

LoRa WAN support updates,

Now ABP end-point activation is supported in Lua RTOS.

https://github.com/whitecatboard/Lua-RT ... e4d187e340

Best regards,

Lua RTOS team

luartos
Posts: 16
Joined: Wed Nov 23, 2016 7:17 pm

Lua RTOS updates

Postby luartos » Mon Dec 12, 2016 11:40 am

We are proud to announce that Lua RTOS has recently added support for:

* ADC
* PWM (led)

Lua RTOS is available as an esp-idf component in https://github.com/whitecatboard/Lua-RTOS-ESP32

A preview of the Whitecat Ecosystem Blockly Based Web IDE is available yet in github:

https://github.com/whitecatboard/blockly-environment

This IDE allows to program your ESP32 board in two ways:

* Program using blocks
* Program using Lua

Best regards,

Lua RTOS team

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Lua RTOS

Postby loboris » Thu Feb 09, 2017 12:30 pm

LUA RTOS ESP32 is an excelent porgramming environment.
It is WIP and new modules and features are added frequently.

Some features I was interested in are not yet available in the main repository https://github.com/whitecatboard/Lua-RTOS-ESP32,
so I've opened my own repository with some additional features and modules:
https://github.com/loboris/Lua-RTOS-ESP32-lobo
I'll try to keep this repository in full sync with the main Whitecat's.

Added modules
* led
* support for WS2812 - NeoPixel RGB leds
* tft
* full support for ILI9341 & ST7735 based TFT modules in 4-wire SPI mode.
* Supported are many graphics elements, fixed width and proportional fonts (7 included, unlimited number of fonts from file)
* jpeg, bmp and raw bitmap images.
* Touch screen supported

Modified modules
* io
* added support for ymodem file transfer (io.ymsend & io.ymreceive functions)
* os
* added function os.exists() for checking file existance
* i2c
* added high level functions: send, receive, sendreceive
* spi
* spi driver modified to support spi on any pin (needed for tft module)
* sensor
* added i2c support
* extended read support with read functions
* enhanced sensor list function
* support for BME280 temperature, humidity and pressure sensors in I2C mode
* support for 1-wire devices on multiple 1-wire buses
* DS1820 temperature sensors support (including parasite power support)

Short video demonstrating capabilities of tft module is available on youtube
tftdemo.lua program
https://www.youtube.com/watch?v=esOO3fN1xDw

Pictures of running paint.lua
Image Image

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Lua RTOS

Postby kolban » Thu Feb 09, 2017 3:37 pm

Howdy Loboris,
Is there a reason to create a fork of the original Lua project? Was the original maintainer not accepting pull requests or enhancement submissions?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Lua RTOS

Postby loboris » Thu Feb 09, 2017 4:18 pm

Hi, Kolbain
This fork is mainly for my own usage and testing the features which I need most. It is in no way intended to compete with original Whitecat's Lua project.
The original maintainer has his own time line and priorities, and some of the changes and additions will eventually be (and were) accepted.
For my usage scenarios, Lua is mostly used for top level programming, and I always try to write most of the code in C (as Lua C functions), which may not be what the original Lua project intention is.

luartos
Posts: 16
Joined: Wed Nov 23, 2016 7:17 pm

Re: Lua RTOS

Postby luartos » Thu Feb 09, 2017 6:30 pm

Hi guys,

Now we are working on The Whitecat IDE, with which you can program any Lua RTOS compatible board. This IDE will be available on the cloud shortly, and has support for two programming models: Blocks or Lua.

Now our efforts are focused on finish the first version of this tool, and then we will include the contributions of the community to the Lua RTOS project.

Best regards,

Lua RTOS team

Who is online

Users browsing this forum: No registered users and 17 guests