I started working on Little Python in C ++ (called Pyxie - a game in Py CC-Pyc-C) with the specific goal of compiling a subset of the python routines in C ++ so that it could work in arduino.
This is far from complete at the time of writing (0.0.16), but currently it can compile a very small subset of python - enough to start the arduino flashing. To support this, it has a compilation profile, which essentially means "compile with the arduino toolchain."
The program that he can compile is as follows:
led = 13 pinMode(led, OUTPUT) while True: digitalWrite(led, HIGH) delay(1000) digitalWrite(led, LOW) delay(1000)
It analyzes, performs analysis (for example, type inference, etc.), compiles in C ++, which then compiles to a hex file, which you can download to your device.
Before that, he must go a long way useful , but he is progressing and has a roadmap, etc.
In particular, the key difference from Micropython (and PyMite) is that it is designed to compile devices that are too small to run or implement. (This also means that it is very different from things like ShedSkin, which, although the Python compiler for C ++ targets the larger runtimes)
Michael Sparks Aug 03 '15 at 13:03 2015-08-03 13:03
source share