This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a Python 3 library for easily setting up devices connected to a Raspberry Pi. It contains objects and methods for DC motors with and without software PWM, servos and LEDs.

Currently, following objects are available:

  • SimpleMotor: DC Motor with bi-directional rotation (no PWM control)
  • DCMotor: DC Motor with bi-directional rotation and PWM control methods
  • Servo: Servo with PWM control and configuration methods
  • LED: LED, Laser Diode or any other device which can be controlled using a single GPIO output pin

Installation and Usage

Option 2 :

Using directly:

  1. Copy the rpi_devices/ files to your Raspberry Pi.

  2. To use the objects, add the following lines at the top of your code:

    import sys
    from devices import cleanup, <Device>-


  1. Do not forget to run the library’s cleanup function or RPi.GPIO.cleanup() after you are done.
  2. Although all the classes in this library allow a different pin numbering mode during setup, it is strongly recommended to use the same mode across all devices. The pin numbering mode is set globally, so if devices are set with different pin numbering modes, code which is not calling a device method will automatically use the mode of the last device called, which can lead to undesirable and, at times, harmful behavior.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rpi_devices-0.1.0-py3-none-any.whl (7.4 kB) Copy SHA256 Checksum SHA256 py3 Wheel Jul 16, 2016
rpi_devices-0.1.0.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Jul 16, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting