Skip to main content

Hardware access for Microchip boards

Project description

Microchip

Microchip

Microchip Peripheral I/O Python Package

This package provides easy access to various hardware peripherals found on Microchip AT91/SAMA5 processors and Xplained 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

mpio-1.2.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

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

mpio-1.2-py2.py3-none-any.whl (35.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mpio-1.2.tar.gz.

File metadata

  • Download URL: mpio-1.2.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/36.6.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.5.2

File hashes

Hashes for mpio-1.2.tar.gz
Algorithm Hash digest
SHA256 80ca33ad8daadcdef1cae8440726fa0f80f72177705bda2eddede184a9bca365
MD5 327d770b3f643743a59949ae2d816dfe
BLAKE2b-256 1e3ee5e439d038a4054f17890825a4b730d3a54687f7fdacf0e031fc5637c939

See more details on using hashes here.

File details

Details for the file mpio-1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: mpio-1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/36.6.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.5.2

File hashes

Hashes for mpio-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31d053d2f33d679f4c24b88a5ced3064b253e03b8236fe69370a0044118da063
MD5 506228cf36b1d7345807ee2e8e362fe0
BLAKE2b-256 ca4e8cf140163afad423027fbf9e7b0e4ae477ec6dfcb774e0ea7cbb2b8fe88b

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