Skip to main content

Helper library for working with Linux gpiochip devices.

Project description

gpiodevice

Build Status Coverage Status PyPi Package Python Versions

A GPIO counterpart to i2cdevice, generated from the Pimoroni Python Boilerplate.

What is gpiodevice?

gpiodevice is a simple middleware library intended to make some user-facing aspects of interfacing with Linux's GPIO character device ABI (via gpiod) simpler and friendlier.

gpiodevice is not intended to replace gpiod, but collects some common patterns into a reusable library for GPIO-based Python projects.

Changelog

0.0.5

  • Add support for int type in get_pin

0.0.4

  • Gracefully handle a tuple being passed to get_pin
  • Match all pinctrl- gpiodevices for RPi in get_gpiochip_labels

0.0.3

  • Deprecate the friendly_errors flag in favour of a new fatal flag on methods
  • Catch use of int pin numbers from unported code and raise a friendly error

0.0.2

  • Add platform detection
  • ROCK 5B support
  • Bug fixes

0.0.1

  • Initial Release

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

gpiodevice-0.0.5.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

gpiodevice-0.0.5-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page