Skip to main content

Python module for Raspberry Pi GPIO

Project description

PyDigiPio

Python package

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)

OSError exception is thrown if GPIO device is configured incorrectly

The Who

Einar Arnason
https://github.com/EinarArnason/
https://www.linkedin.com/in/einararnason/

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

PyDigiPio-20.144.174837.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

PyDigiPio-20.144.174837-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file PyDigiPio-20.144.174837.tar.gz.

File metadata

  • Download URL: PyDigiPio-20.144.174837.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for PyDigiPio-20.144.174837.tar.gz
Algorithm Hash digest
SHA256 83b7f9b549f05dab9481d8bb9aebebbb374382843ecd35fa9643ccd9dea540cd
MD5 a2c1a9d487d0c2fb00caa8dde54aec73
BLAKE2b-256 635d3309948c3f915173db2e9cb9aa28f57c65d1bf102c816af8c851ad012f91

See more details on using hashes here.

File details

Details for the file PyDigiPio-20.144.174837-py3-none-any.whl.

File metadata

  • Download URL: PyDigiPio-20.144.174837-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for PyDigiPio-20.144.174837-py3-none-any.whl
Algorithm Hash digest
SHA256 5e97cfb68e4388dfa98698ce4631b4f39bb8c993c137ad2b3ebdd7ffe399ca59
MD5 25d740f06a7db84c186df9b46e2844b5
BLAKE2b-256 ff9d0c88defb65f907492b5ac4494040ec653ad73accc565547dd1d20ab70bfe

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