Hardware access for Microchip boards
Project description
Microchip Peripheral I/O Python Package
This package provides easy access to various hardware peripherals found on Microchip AT91/SAMA5/SAMA7 processors and boards running Linux. The API is clean, consistent, flexible, documented, and well tested to make navigating and exercising even the most complex hardware peripherals a trivial task.
Supported Interfaces
ADC - Analog-to-Digital Converter
DevMem - Read and Write System Memory
GPIO - General Purpose I/O
I2C - Inter-Integrated Circuit
SMBus - System Management Bus
Input - Input Subsystem (Mouse/Keyboard/Touchscreen)
LED - Light Emitting Diode Light Sources
PWM - Pulse Width Modulation
SPI - Serial Peripheral Interface Bus
Serial - RS-232
CPU and Board Utilities
Examples
Here’s an example of how simple it is to fire up a Python interpreter and toggle a GPIO.
>>> from mpio import GPIO >>> gpio = GPIO(107, GPIO.OUT) >>> gpio.set(True) >>> gpio.set(False)
Installation
You can install from PyPi by default with:
pip install mpio
License
Microchip Peripheral I/O is released under the terms of the Apache License Version 2. See the LICENSE file for more information. Parts of the code originally provided under other licenses are noted in those source files, including the MIT license and is reproduced in the LICENSE.MIT file.
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
Built Distribution
File details
Details for the file mpio-1.5.tar.gz
.
File metadata
- Download URL: mpio-1.5.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7405fb87b40992a6fefda7b402065fe38eaf8d1dbe59b5a8e9509585fa569a91 |
|
MD5 | 1539e8fbe7a30b19412f828593ce5ab4 |
|
BLAKE2b-256 | ce1222a91abcaa87ec97be3fbdb0f4bd403e54cd1de792d2d0fecc15e4f6cf1f |
File details
Details for the file mpio-1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: mpio-1.5-py2.py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c6e07c2bb03700c338a235882d18a2fe31982e820837b2e09c1d5295777de3b |
|
MD5 | cb7213e36304cb8d18436c431a01ddb9 |
|
BLAKE2b-256 | 28d03c78611edca25e1beac154a17cf372fe66c96d9a0afab8f6f25b7833e6ec |