Python module for Raspberry Pi GPIO
Project description
PyDigiPio
Python module for Raspberry Pi GPIO
The What
This is a python module to interface with the digital inputs and output of the Raspberry Pi GPIO. Nothing more, nothing less.
The Why
Sometimes you just need digital I/O on the Raspberry Pi (and possibly other device, untested so far). This library provides direct access without the need of complex libraries.
The How
Install from PyPi:
pip install PyDigiPio
Usage:
import PyDigiPio
# Sets pin assigned to GPIO 1 as output
PyDigiPio.configure_pin(1, 'out')
# Set GPIO 1 HIGH
PyDigiPio.write_to_pin(1, True)
# Set GPIO 1 LOW
PyDigiPio.write_to_pin(1, False)
# Sets pin assigned to GPIO 2 as input
PyDigiPio.configure_pin(2, 'in')
# Get state of GPIO 2
PyDigiPio.read_from_pin(2)
The Who
Einar Arnason
https://github.com/EinarArnason/
https://www.linkedin.com/in/einararnason/
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for PyDigiPio-0.1.3.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5045149cc90aff5b2b36930f8a1459c9ef2df3da47f413d006ef3c772455e33d |
|
MD5 | 66c8258c4e5c6bf834646d9e09bc30cc |
|
BLAKE2b-256 | cda00631b74702964702b24de22d9c297ae83fd1e6c26920f65cde946c85cd20 |
Close
Hashes for PyDigiPio-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d825fdbd81f317b9b7d66426c16fdc5c0000224e262829c1db0b54ea6862bb6c |
|
MD5 | 7e22be5f4b47541f96fb06dbc61844b3 |
|
BLAKE2b-256 | a6d0cc8863287221825fb2417182a38b008c6d348450dc50c2d63691626e5448 |