Welcome! Python-on-a-Chip (p14p) is a project to develop a reduced Python virtual machine (codenamed PyMite) that runs a significant subset of the Python language on microcontrollers without an OS. The other parts of p14p are the device drivers, high-level libraries and other tools. Please join the python-on-a-chip google group to discuss this project.
Latest news:
Features of the PyMite VM:
- Requires roughly 55 KB program memory
- Initializes in 4KB RAM; print "hello world" needs 5KB; 8KB is the minimum recommended RAM.
- Supports integers, floats, tuples, lists, dicts, functions, modules, classes, generators, decorators and closures
- Supports 25 of 29 keywords and 89 of 112 bytecodes from Python 2.6
- Can run multiple stackless green threads (round-robin)
- Has a mark-sweep garbage collector
- Has a hosted interactive prompt for live coding
- Licensed under the GNU GPL ver. 2
The PyMite VM DOES NOT HAVE:
- A built-in compiler
- Any of Python's libraries (no batteries included)
- A ready-to-go solution for the beginner (you need to know C and how to work with microcontrollers)
The release can be downloaded from the Downloads tab above. However, we recommend checking out the head of the mercurial repository.