No description
  • C 98.9%
  • HTML 0.8%
  • Lua 0.2%
  • Nix 0.1%
Find a file
2025-10-04 19:09:59 +02:00
.github/workflows use test for specific board 2024-09-25 09:43:59 +02:00
.vscode add more complex examples (#1) 2024-10-22 10:14:59 +02:00
assets add more complex examples (#1) 2024-10-22 10:14:59 +02:00
boards/esp32c3-devkit use test for specific board 2024-09-25 09:43:59 +02:00
main rename main file to inkpot 2025-10-04 19:09:59 +02:00
.envrc add flake.nix 2025-10-04 19:08:59 +02:00
.gitignore add basic epdiy setup for lilygo t5 2025-10-03 22:31:29 +02:00
CMakeLists.txt add more complex examples (#1) 2024-10-22 10:14:59 +02:00
diagram.json add project build automation 2024-09-25 09:03:35 +02:00
flake.lock add flake.nix 2025-10-04 19:08:59 +02:00
flake.nix add flake.nix 2025-10-04 19:08:59 +02:00
partitions.csv add more complex examples (#1) 2024-10-22 10:14:59 +02:00
README.md add more complex examples (#1) 2024-10-22 10:14:59 +02:00
sdkconfig add basic epdiy setup for lilygo t5 2025-10-03 22:31:29 +02:00
sdkconfig.defaults add more complex examples (#1) 2024-10-22 10:14:59 +02:00
wokwi.toml add project build automation 2024-09-25 09:03:35 +02:00

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

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

idf.py set-target esp32  # Replace esp32 with your specific target, e.g., esp32c3
idf.py build flash monitor