semvec/pypi-packages huggingface dataset:
pymdgilib 0.3.0.3
Microchip Data Gateway Interface Tools
License: MIT
Requires Python: >=3.9
Keywords: Microchip

# Microchip Data Gateway Interface Tools

The `pymdgilib` Python package contains various tools to support devices that implement the Microchip Data Gateway Interface (DGI) protocol.

![PyPI - Format](https://img.shields.io/pypi/format/pymdgilib)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pymdgilib)
![PyPI - License](https://img.shields.io/pypi/l/pymdgilib)

## Installation
Install using pip from [pypi](https://pypi.org/project/pymdgilib):
```sh
pip install pymdgilib
```

## Command line interface - pydgi

`pydgi` is a command line interface to interact with DGI interfaces.

For help run:
`pydgi --help`

To monitor DGI GPIO0 for 5 seconds run:
`pydgi gpio read --pin 0x1 --sampling-time 5`

To set GPIO0 to high on the board with USB serial number MCHP3280042700000498 run:
`pydgi --serial MCHP3280042700000498 gpio write --pin 0x1 --value 0x1`

## Using pymdgilib as a library

Examples on how to use pymdgilib as a library are located in `pymdgilib/examples`.

# Changelog

## [0.3.0] - November 2024
Initial release of the package.