add more complex examples (#1)
This commit is contained in:
parent
b51f7f449d
commit
a01d8580d9
12 changed files with 1657 additions and 204 deletions
25
README.md
25
README.md
|
|
@ -1,9 +1,24 @@
|
|||
# ESP32-C3 Lua evaluation example
|
||||
# ESP32 Lua Evaluation Example
|
||||
|
||||
## Build
|
||||
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.
|
||||
|
||||
```shell
|
||||
idf.py set-target esp32c3
|
||||
## Prerequisites
|
||||
|
||||
- ESP-IDF version 5.1.0 or higher
|
||||
- Components:
|
||||
- [Lua 5.4](https://components.espressif.com/components/georgik/lua/)
|
||||
- [LittleFS 1.14](https://components.espressif.com/components/joltwallet/littlefs/)
|
||||
|
||||
## 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.lua`
|
||||
- `fibonacci.lua`
|
||||
|
||||
## Build and Flash
|
||||
|
||||
```bash
|
||||
idf.py set-target esp32 # Replace esp32 with your specific target, e.g., esp32c3
|
||||
idf.py build flash monitor
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue