Installation overview
August 14, 2026 · View on GitHub
pydevices-examples supports three install channels. Pick based on whether you need the full repo, source files on device, or precompiled bytecode.
Comparison
| Channel | Format | Install tool | Includes examples | Includes utils |
|---|---|---|---|---|
| Full clone | Entire repo | git clone | Yes | Yes |
| GitHub MIP | Source .py | mip / mpremote mip | Optional (examples.json) | Yes (utils.json) |
| PyDevices MIP | Precompiled .mpy | mip with custom index | No | No |
For recommended board setup flows, see pydevices install workflows.
What gets installed
Product libraries (canonical source in pydevices, published through MIP and TestPyPI):
eventsys— optional application event traffic controlleraudiodev— portable PCM audio interfacesdisplaydev— display drivers (BusDisplay, SDLDisplay, PGDisplay, etc.) from pydevicesmultimer— cross-platform timers; see multimer (pydevices)events/keys— event types and key codes (pydevices)
Sister packages (separate repos, installed from the same PyDevices MIP index):
pygraphics— extended drawing helpers (PyDevices/pygraphics); see graphicspalettes— color palettes (PyDevices/palettes); see palettes guidepdwidgets— widget toolkit (PyDevices/pdwidgets); see pdwidgets guide
Optional packages:
utils— optional extensions (framebuf shim, console, displaybuf, tft_config, …);byteswap/mip/viper_tools/keypins/wifi/frame_recordercome from pydevicesutils/examples— demo scripts- Bus/touch helpers — see pydevices packages
Board support (pydevices):
- Optional prebuilt
board_config.pypackages per hardware — see board configs and install workflows - Display and touch drivers under that repo’s
drivers/ - Desktop SDL (
usdl2) via the MIP desktop board package orpydevices-desktopon TestPyPI
PyPI / pip (TestPyPI)
Pure-Python CPython wheels are on TestPyPI for maintainer testing (not production PyPI). Install with both indexes so PyDevices packages and PyPI-only dependencies resolve:
pip install \
-i https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ \
pydevices-desktop pydevices-eventsys
-iTestPyPI — primary index for prefixed PyDevices distributions (pydevices-displaydev,pydevices-eventsys,pydevices-desktop, …).--extra-index-urlPyPI — secondary index for dependencies published only on pypi.org (for examplepygame-cewhen usingPGDisplay; stillimport pygameat runtime).
Omitting either index causes pip to fail: TestPyPI-only packages are not on PyPI, and PyPI-only dependencies are not on TestPyPI. See the product package publishing guide.
For day-to-day desktop work without pip, use a full clone or desktop quick start.
After installing
- Provide your own
board_config.pyfor your hardware, or optionally install a prebuilt board package from pydevices. - Follow the quick start for your platform:
Troubleshooting
See Troubleshooting for import errors, MIP failures, and display issues.