No description
- C 98.9%
- HTML 0.8%
- Lua 0.2%
- Nix 0.1%
| .github/workflows | ||
| .vscode | ||
| assets | ||
| boards/esp32c3-devkit | ||
| main | ||
| .gitignore | ||
| CMakeLists.txt | ||
| diagram.json | ||
| partitions.csv | ||
| README.md | ||
| sdkconfig | ||
| sdkconfig.defaults | ||
| wokwi.toml | ||
ESP32 Lua Evaluation Example
This example demonstrates how to use Lua 5.4 on ESP32, leveraging the LittleFS filesystem to run Lua scripts from external files. It also showcases Wi-Fi scanning and embedded Lua scripts.
Prerequisites
- ESP-IDF version 5.1.0 or higher
- Components:
File Structure
main.c: Main program containing embedded Lua script and file-based Lua execution.assets/: Directory containing Lua scripts for QR code generation and Fibonacci computation.qr_code.luafibonacci.lua
Build and Flash
idf.py set-target esp32 # Replace esp32 with your specific target, e.g., esp32c3
idf.py build flash monitor