Skip to main content

Python framework for robotics and physical computing.

Project description

Build Status Code Climate Coverage Status

Zorg (https://zorg-framework.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

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:

  • Analog Sensor

  • Temperature sensor

  • Microphone

  • Light sensor

  • Touch sensor

  • Rotary Angle Sensor

  • Button

  • LED

  • Relay

  • Servo

  • Buzzer

Open a new issue to request support for additional components.

License

Copyright (c) 2015 Team Zorg

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

zorg-gpio-0.0.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

zorg_gpio-0.0.1-py2-none-any.whl (7.3 kB view hashes)

Uploaded Python 2

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