sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
539 stars 248 forks source link

Scripting language integration #345

Closed pavelmachek closed 2 years ago

pavelmachek commented 2 years ago

I would really like some kind of scripting language. (Python would be best, but Lua is probably better choice due to limited resources). I tried to integrate lua, and got it to work on desktop (I pushed the sources to https://gitlab.com/tui/My-TTGO-Watch) but could not get platformio to build library for me so I had to use system one. (Which is no-no as it does not work outside emulator).

Documentation said add

lib_deps =
    arnoson/lua-on-arduino@^0.0.1

so I did, and platformio seems to download the sources, but I could not get it to compile them and I don't know how to debug that, unfortunately. Once lua is linked, calling it is fairly easy, and I got that to work in https://gitlab.com/tui/My-TTGO-Watch/-/blob/master/src/app/example_app/lua.cpp . If someone can help with linking, I'd like to play with this.