Python 3 (MicroPython) on Arduino Due!

Hi everybody,

MicroPython has been ported to Arduino Due and works very well to toggle pins and using the serial port!

Install it in the Arduino IDE as described on the page below. There is one cavet, you must disable upload verification in the IDE because it times out after 2 minutes and the upload fails.

http://pumbaa.readthedocs.io/en/latest/installation.html#arduino-arduino-ide

Once installed and the interactive sketch has been uploaded you can use the serial monitor to write Python 3 code on the Due!

The documentation for the port is here: Welcome to Pumbaa’s documentation! — Pumbaa 3.0.2 documentation

Github project: GitHub - eerimoq/pumbaa: Python on Simba.

Enjoy! =)

Hi,

the .ino-file in Pumbaa is a Python script instead of a C++ file as it normally is. Just edit it and voila, you have your Python sketch running on the Arduino Due!

The Hello world and Blink looks like this:

Hello world

Arduino IDE: File -> Exmaples -> Pumbaa -> hello_world

hello_world.ino:

print('Hello world!')

Blink

Arduino IDE: File -> Exmaples -> Pumbaa -> blink

blink.ino:

import time
from simba import Board, Pin

LED = Pin(Board.PIN_LED, Pin.OUTPUT)

while True:
    LED.toggle()
    time.sleep(0.5)

NOTE: The Pumbaa Arduino IDE build system requires Python to be installed on your computer, and "python" must be found in PATH.