PyDevices Examples
PyDevices / examples

Display, input & events — one Python codebase.

This is where the PyDevices product is shown in action: portable examples and integration guides that run across MicroPython, CircuitPython, CPython, browsers, notebooks, and Android.

The biggest on-ramp is the installable PyScript Gallery — the same examples as MCUs and CPython, live in the browser with no flash step. Start your own browser app with the PyScript PWA template, or use the Android template for a native phone build.

Open the PyScript Gallery Android APK companion Create a PyScript app Documentation

Core runtime

board_config + Runtime — one idiom everywhere
from board_config import display_drv, runtime

runtime.on(runtime.events.MOUSEBUTTONDOWN, on_click)
runtime.run_forever()

Import board_config, register handlers, run the loop. Guides and the full platform matrix live in the documentation (Portability, Ecosystem).

In the stack

add-ons live on their own pages

palettes

Wheels, cubes, Material swatches, and named colors via get_palette().

palettes Pages

pdwidgets

Lightweight widgets on top of the PyDevices display stack — buttons, forms, nav, charts.

pdwidgets Pages

pydevices-android-template

Native APK companion via python-for-android — distinct from the browser PWA.

Android Pages

More

docs, simulation, packages

Documentation

Guides, concepts, and API reference on Read the Docs.

PyScript Gallery

The same lib/examples/ scripts as MCUs and CPython — installable in the browser.

Wokwi example

ESP32-S3 simulation running PyDevices examples on virtual hardware.

Source on GitHub

Browse the code, file issues, and contribute.

MIP package index

Install PyDevices packages and add-ons with mip on any *Python.

LVGL bindings

Full widget toolkit via lvgl-bindings and the matching cmod for your runtime.