Wiki

This version is outdated by a newer approved version.DiffThis version (02 May 2019 16:58) was approved by Wenting Zhang.

This is an old revision of the document!


Table of Contents

MicroPython Overview

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.

Demo

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.

Tutorials

Follow these tutorials to become familiar with using MicroPython on the SHARC Audio Module.

These tutorials are meant to help you with using SHARC Audio Module specific functions of MicroPython, but not Python or MicroPython in general. You can find more general information about them on their official Wiki sites.

Navigation - SHARC Audio Module

resources/tools-software/sharc-audio-module/micropython.1556742480.txt.gz · Last modified: 01 May 2019 22:28 by Wenting Zhang