/legomario

Generate printable SVG scanner codes and Python API for LEGO Mario

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

legomario

  • Generates printable SVG scanner codes for LEGO Mario as well as Luigi & Peach. View the HTML live from the repository
  • Provides a Python library for interacting with LEGO Bluetooth LE devices including:
    • LEGO Mario (Luigi & Peach)
    • LEGO Powered Up Remote Control (88010)
    • DUPLO Train Hub No. 5
    • Technic Hub No. 2 (88012) and (some) attached LEGO Powered Up (LPF2) Devices (not motors, yet...)
  • Does not have great documentation yet

Requires

Try a Bluetooth example 1

git clone https://github.com/mutesplash/legomario.git
cd legomario
python3 -m venv .

Activate the virtual environment. In bash: source bin/activate

python3 -m pip install Bleak
cd examples
ln -s ../BTLego
python3 scan.py

Footnotes

  1. Python adds the script location to sys.path, so to run the examples in place, link the module into /examples