This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

An extensible library to control microcontroller boards like Arduino using Python and the ArduRPC protocol

Project Description

Python library to control microcontroller based boards by using the ArduRPC protocol.

You can find more information in the documentation.

Install

Requirements:

  • Python 2.7 or Python >= 3.2

Requirements (optional):

Install:

Install the basic ArduRPC library.

$ pip install ardurpc

Example

The pyserial library is required to run the following example.

import ardurpc
from ardurpc.connector import Serial, UDP

# Connect to the serial port
con = Serial("/dev/ttyACM0", 9600)

# More examples:
# con = Serial("/dev/ttyUSB0", 9600)
# con = UDP(host="192.168.1.1", port=1234)

# New instance
rpc = ardurpc.ArduRPC(connector=con)

print("Version(Protocol): {0}".format(rpc.getProtocolVersion()))
print(
    "Version(Library): {0}".format(
        ".".join([str(i) for i in rpc.getLibraryVersion()])
    )
)
print(
    "Available handlers: {0}".format(
        ", ".join(rpc.get_handler_names())
    )
)

License

Published under the LGPLv3+ (see LICENSE for more information)

Release History

Release History

This version
History Node

0.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ardurpc-0.3.tar.gz (9.1 kB) Copy SHA256 Checksum SHA256 Source Aug 2, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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