DEPRECATED! This code is terrible and glitched, don't use it (planning to fork it).
PySpikon (a.k.a PySpikeConverter) is a Python-based program that allows you to convert .llsp files into .py files, it uses the "project.json" contained into your .llsp to create a Python file directly from the command-line.
PySpikon é um programa baseado em Python que te permite converter arquivos .llsp em arquivos .py, ele usa o "project.json" contido em seu .llsp para criar um arquivo Python direto da linha de comando
This version is stable, but its still not complete.
1 Setup
1.1. Installing
1.2. Using
2.1 Supported Robots
2.2 Features and Supported Blocks
You can download PySpikon M.I.A setup here.*
*OBS: To run it, you need Python 3.6+
To use it, go to the folder where you installed PySpikon, then run:
cd pyspikon/pyspikon
python pyspikon.py path-to-file new-file-path [--live-editor]
The output will be named "output.py"
- Lego® Mindstorms® NXT (9797)
- Lego® Mindstorms® EV3 (45544)
- Lego® Education® Spike™ Prime (45678)
- Lego® Mindstorms® Robot Inventor (51515)
PySpikon supports almost all blocks from LEGO Education SPIKE, except for Events and MyBlocks.
Blocks | Supported? |
---|---|
Individual Motors | Yes! |
Motor Pairs | Yes! |
Light Blocks | Yes! |
Sound Blocks | Yes! |
Events | No |
Control | Yes! |
Sensors | So-so |
Operators | So-so |
Variables | Yes! |
MyBlocks | No |
PySpikon has features like Live Editor, i will explain better in next sections
Live Editor is the real-time converter of PySpikon, each second your code output is updated, to use it type --live-editor
in the end of your command.
Here is GPL v3 (PySpikon's license) in a nutshell:
- You can copy and modify this program (fork).
- But you need to credit it.
- If you use it in a closed-source project, you need to change your license to GPL v3.
- If you break this rules you will lose the rights, except if you fix it.