GPIO drivers for Zorg robots.
Project description
Zorg (https://zorg.github.io/) is a Python framework for robotics and physical computing.
This module provides drivers for General Purpose Input/Output (GPIO) 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
Example
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:
Open a new issue to request support for additional components.
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zorg-gpio-0.0.7.tar.gz.
File metadata
- Download URL: zorg-gpio-0.0.7.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6ae830a76a56db8fd50f84314f4bbf4b1746a0385fb45f090e2c200f258a8bc
|
|
| MD5 |
4e15fd58df0159c4da3710274e78a42c
|
|
| BLAKE2b-256 |
fbbba0befcc7a6cc686fc26db3c0b8af4968e4bca003206104f6befac46a8e6e
|
File details
Details for the file zorg_gpio-0.0.7-py2-none-any.whl.
File metadata
- Download URL: zorg_gpio-0.0.7-py2-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
270f679271a91ca4d9f82625b20e89650cd56df9fdf43a2d048d86ae9c8151c5
|
|
| MD5 |
67d719b3b80c940f1205545def71bca7
|
|
| BLAKE2b-256 |
585b78dc039e602e79b29c6206ed4e4fbd5f168514033fa1d87fb07eb6784ff3
|