OmniPython

One Python for screens, sound and USB that runs the same on a microcontroller, on your desktop and in a browser tab.

MicroPython-compatible CircuitPython-compatible CPython WebAssembly

OmniPython is the portability layer for MicroPython, CircuitPython and CPython: the libraries your program imports to draw, play sound, take touch and talk USB, the same on a board, a desktop, a phone and a web page. This site is the manual for every one of them. The sidebar lists them, and search looks through all of them at once.

If you are new, start with the newcomer’s guide. To get it on your machine or your board, install it.

The libraries

omnipython

The board contract, displaydev, audiodev, appdev, multimer and the drivers: what every program stands on.

OmniPython
pygraphics

2D drawing, bitmap fonts and blitting, in C and in Python. Bit World is built on it.

pygraphics
palettes

Color palettes for drawing: an HSV wheel, RGB cubes, Material Design swatches and RGB565 helpers.

palettes
LVGL

The LVGL bindings, for MicroPython, CircuitPython and CPython: the UI toolkit to reach for.

LVGL for Python
pdwidgets

A whole widget toolkit written in Python on the OmniPython core, with no C: a demonstration that the core can carry other UI frameworks.

pdwidgets
audiodsp

The audio engine’s native modules: filters, delays, mixers, samplers and the pump.

audiodsp documentation
audioinstruments

Synthesizers, drum machines and samplers built on audiodsp.

audioinstruments
audioeffects

Effects and pedals built on audiodsp.

audioeffects
Firmware and modules

The firmware builds and the native modules they carry: displayif, usbif, cameraif and the rest.

omnipython-builds

Try it before you install it

The gallery runs the same example programs that run on boards, in your browser. The first page of pygraphics, palettes and pdwidgets here carries a live demo you can edit and run.