Skip to content

Lana-chan/picocalc_lua

 
 

Repository files navigation

PicoCalc Lua

A Lua interpreter for PicoCalc. It contains a REPL, basic API to draw graphics, read keys and access the SD filesystem.

You can find more credits running credits() at the Lua prompt

Dependencies

sudo apt update
sudo apt install build-essential gcc-arm-none-eabi git cmake python3

git clone --recurse-submodules https://github.com/Lana-chan/picocalc_lua
cd picocalc_lua

Build

mkdir build
cd build
cmake .. -DPICO_BOARD=pico2 # change depending on your board
make

Usage

Ctrl-Alt-F1 Reboot in BOOTSEL mode
Ctrl-Alt-Del Reboot
Enter Excute
Ctrl-C Clear line
Ctrl-L Clear screen
Up/Down Small history

See Getting Started and API.md for full API documentation

Notes

The lua-5.4.8 distribution is copied from the release source tarball with the following modifications:

  • Added src/CMakeLists.txt, which lists all of the .c files except lua.c and luac.c
  • Changed LUA_32BITS to 1 in luaconf.h
  • luaL_loadfilex and readable reworked to use pico_fatfs calls in lauxlib.c and loadlib.c

References

About

A minimal port of Lua for the PicoCalc

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 89.5%
  • Lua 9.7%
  • Other 0.8%