Announcement: port of MicroPython

27 Apr 2016

I'd like to announce the first release of a port of MicroPython to the mbed platform.

By importing, comiling and running the micropython-repl program, you can have an interactive python interpreter running on your mbed-enabled board via the USB serial connection.

It's by no means complete, but python equivalents of the DigitalOut, DigitalIn and Serial classes are provided.

An example session:

MicroPython v1.7-239-gac54c48 on 2016-04-27; mbed with arm
Type "help()" for more information.
>>> from mbed import DigitalOut, wait_ms
>>> from pins import *
>>> led = DigitalOut(LED_RED)
>>> for i in range(10):
...   led.write(i % 2)
...   wait_ms(500)
... 
>>> 

Enjoy!