Skip to content
Daniele Lacamera edited this page Mar 1, 2018 · 3 revisions

Micropython

Micropython is a lightweight, efficient, open source python 3 implementation by George Robotics Limited.

The advantages of running micropython on frosted include:

  • pthread support (via _thread)
  • socket support (unix and tcp/ip sockets)
  • poll

To run MicroPython on Frosted first you need to clone our MicroPython repository

git clone https://github.com/insane-adding-machines/micropython.git

Then enter the MicroPython root directory and build mpy-cross

cd micropython
make -C mpy-cross

Next enter the frosted directory and build MicroPython

cd frosted
make

The resulting micropyton binary in this directory can be copied into the frosted-userland repositories 'sh' directory and added to the frosted image by rerunning make

cp micropython ~/frosted/frosted-userland/sh/
cd ~/frosted/
make

Now you can flash the image containing MicroPython.

Clone this wiki locally