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.3.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.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myztrion-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0d9536628f4a8ba47299149df7443c6d3c7bf3201c7bf26ed537749a1af76fe0
MD5 64e4715be05fd3ddd69de9d046afdb75
BLAKE2b-256 6905c4540171d2f17db633ff216123b7959d67c14eab3cf43bfe70a167788e19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myztrion-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1e2cdac245262744c9e213f0e4e7648aaf07900080ded5e87126b463b18957
MD5 c8e092cb59b27c2cc1d636b4dc0af906
BLAKE2b-256 773d0747e988c283a829eabdae3064d598fb755910e586422cc92b43bbdb7dc6

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