-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca8438f
commit 78f6bf6
Showing
4 changed files
with
136 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
language: python | ||
|
||
python: | ||
- '3.4' | ||
- '2.7' | ||
- 'pypy' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
zorg-gpio | ||
========= | ||
|
||
|Package Version| |Requirements Status| |Build Status| |Code Climate| | ||
|Coverage Status| | ||
|
||
Zorg (https://zorg.github.io/) is a Python framework for robotics and | ||
physical computing. | ||
|
||
This module provides drivers for `General Purpose Input/Output | ||
(GPIO) <https://en.wikipedia.org/wiki/General_Purpose_Input/Output>`__ | ||
devices. Typically, this library is registered by an adaptor class such | ||
as ```zorg-edison`` <https://github.com/zorg/zorg-edison>`__ that | ||
supports the needed interfaces for GPIO devices. | ||
|
||
Getting Started | ||
--------------- | ||
|
||
Install the module with: ``pip install zorg zorg-gpio`` | ||
|
||
`Documentation <http://zorg-gpio.readthedocs.org/>`__ | ||
----------------------------------------------------- | ||
|
||
Example | ||
------- | ||
|
||
.. code:: python | ||
import time | ||
import zorg | ||
def blink_led(my): | ||
while True: | ||
my.led.toggle() | ||
time.sleep(100) | ||
robot = zorg.robot({ | ||
"name": "Test", | ||
"connections": { | ||
"edison": { | ||
"adaptor": "zorg_edison.Edison", | ||
}, | ||
}, | ||
"devices": { | ||
"led": { | ||
"connection": "edison", | ||
"driver": "zorg_gpio.Led", | ||
"pin": 4, # Digital pin 4 | ||
}, | ||
}, | ||
"work": blink_led, | ||
}) | ||
robot.start() | ||
Hardware Support | ||
---------------- | ||
|
||
Zorg has a extensible system for connecting to hardware devices. The | ||
following GPIO devices are currently supported: | ||
|
||
- `Temperature sensor <docs/temperature_sensor.md>`__ | ||
- `Light sensor <docs/light_sensor.md>`__ | ||
- Microphone | ||
- Touch sensor | ||
- Rotary Angle Sensor | ||
- `Button <docs/button.md>`__ | ||
- `Analog Sensor <docs/analog_sensor.md>`__ | ||
- `Digital Sensor <docs/digital_sensor.md>`__ | ||
- `LED <docs/led.md>`__ | ||
- `Relay <docs/relay.md>`__ | ||
- `Servo <docs/servo.md>`__ | ||
- Buzzer | ||
|
||
`Open a new issue <https://github.com/zorg/zorg-gpio/issues/new>`__ to | ||
request support for additional components. | ||
|
||
License | ||
------- | ||
|
||
`Copyright (c) 2015 Team | ||
Zorg <https://github.com/zorg/zorg/blob/master/LICENSE.md>`__ | ||
|
||
.. |Package Version| image:: https://img.shields.io/pypi/v/zorg-gpio.svg | ||
:target: https://pypi.python.org/pypi/zorg-gpio/ | ||
.. |Requirements Status| image:: https://requires.io/github/zorg/zorg-gpio/requirements.svg?branch=master | ||
:target: https://requires.io/github/zorg/zorg-gpio/requirements/?branch=master | ||
.. |Build Status| image:: https://travis-ci.org/zorg/zorg-gpio.svg?branch=master | ||
:target: https://travis-ci.org/zorg/zorg-gpio | ||
.. |Code Climate| image:: https://codeclimate.com/github/zorg/zorg-gpio/badges/gpa.svg | ||
:target: https://codeclimate.com/github/zorg/zorg-gpio | ||
.. |Coverage Status| image:: https://coveralls.io/repos/github/zorg/zorg-gpio/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zorg/zorg-gpio?branch=master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
'TemperatureSensor', | ||
] | ||
|
||
__version__ = '0.0.1' | ||
__version__ = '0.0.2' |