This is an old revision of the document!
MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimized to run on micro-controllers and in constrained environments. (http://micropython.org/)
To be short, MicroPython is a Python environment running on the bare metal.
Though the SHARC Audio Module is powerful enough to run the full Python 3 on the Linux operating system, depending on the use case, it might be favorable to use the Python on bare metal. The MicroPython has been ported over to the SHARC Audio Module, and can be used in conjunction with the Bare Metal Framework to utilize the on-chip SHARC DSP. You can get the latest version of source code at https://github.com/analogdevicesinc/micropython
The SHARC Audio Module port of MicroPython currently has drivers for GPIO
, TWI
, SPI
, RTC
, Timer
, and SD
card, and is compatible with the drivers in the official pyboard by MicroPython.
A user can either use the interactive shell (REPL) to write the Python program directly on the SAM through the FTDI USB-serial cable, or load and run a written program stored on the SD card.
This video demonstrates some basic features of the MicroPython for SHARC Audio Module as well as how it can be used in conjunction with the Bare Metal Framework.
Follow these tutorials to become familiar with using MicroPython on the SHARC Audio Module.