Skip to main content

Myztrion is a modern Python toolkit for USB/Serial communication with Myztrion devices. It converts low-level packets into structured reports, supports async/sync callback dispatching, and enables practical control workflows for GPIO, PWM, ADC acquisition, and stepper motor motion. Built for makers and engineers who want a clean, reliable bridge between Python tooling and embedded hardware control.

Project description

Myztrion (organized)

Myztrion is a combined host-and-firmware project designed to make it easy to control an RP2040/Pico-based device from a computer using Python, while keeping the embedded firmware clean and maintainable. The repository is organized to clearly separate the Python “host” side (tools that run on your PC) from the C firmware that runs on the microcontroller, and to provide runnable examples that demonstrate typical workflows.

The overall goal is fast iteration: you can build and flash firmware, then immediately validate behavior from Python with repeatable scripts. This structure also supports packaging the Python host library for distribution (e.g., via pip), while keeping firmware development independent.

Repository structure

  • myztrion/python/
    Python host library. This includes the main entry module (for example Myztrion.py) plus helper modules that implement the USB/Serial backend and any parsing/utilities required for communication. This is the code you import from your own Python scripts.

  • myztrion/firmware/
    C firmware sources for RP2040/Pico. This contains the Pico SDK project (CMake files, sources, headers, and any build scripts) that compiles into a UF2/ELF. This side defines the device protocol and the reports/commands the Python host will use.

  • examples/python/
    Example scripts intended to be run directly. These demonstrate basic connectivity, as well as specific features like GPIO sequencing, PWM usage, ADC sampling (including optional plotting workflows), and stepper control. The examples are also a convenient way to confirm that your environment is set up correctly.

Running examples

From the repository root, you can run any example script directly. For example:

python3 examples/python/hello_world_myztrion.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myztrion-0.1.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myztrion-0.1.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file myztrion-0.1.1.tar.gz.

File metadata

  • Download URL: myztrion-0.1.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for myztrion-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0d4331c9901135db40fc736cf93adbf54ee57875ec6415d78816278b1067be64
MD5 e5f9021d211694458e44d6487d013010
BLAKE2b-256 02a0fc716b0239a78e30bcf7b603490e0ba4aa29aace335f5082cb94acccc8b0

See more details on using hashes here.

File details

Details for the file myztrion-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: myztrion-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for myztrion-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51079f4e871c39578ce50d55628d45466491ab2d28bfe9286c036b81c1f97f89
MD5 4b707542cbe6928fa52874db8c89e13d
BLAKE2b-256 4af78f90ba6261396a2811f44c3f874002e5f08144a8ed3d31456c3e01eb9b76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page