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!

revolution-python-api

Project Description

The BITalino (r)evolution Python API provides the needed tools to interact with BITalino (r)evolution using Python.

Installation

pip install bitalino

Usage Example

IMPORTANT: You’ll need to replace 00:00:00:00:00:00 by the MAC address of your device:

# This example will collect data for 5 sec.
macAddress = "00:00:00:00:00:00"
running_time = 5

batteryThreshold = 30
acqChannels = [0, 1, 2, 3, 4, 5]
samplingRate = 1000
nSamples = 10
digitalOutput = [1,1]

# Connect to BITalino
device = BITalino(macAddress)

# Set battery threshold
print device.battery(batteryThreshold)

# Read BITalino version
device.version()

# Start Acquisition
device.start(samplingRate, acqChannels)

start = time.time()
end = time.time()
while (end - start) < running_time:
        # Read samples
        print device.read(nSamples)
        end = time.time()

# Turn BITalino led on
device.trigger(digitalOutput)

# Stop acquisition
device.stop()

# Close connection
device.close()
Release History

Release History

This version
History Node

1.0

History Node

0.6

History Node

0.5

History Node

0.1

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
bitalino-1.0-py2-none-any.whl (8.8 kB) Copy SHA256 Checksum SHA256 Source Dec 9, 2016
bitalino-1.0.tar.gz (7.1 kB) Copy SHA256 Checksum SHA256 Source Dec 9, 2016
bitalino-1.0.zip (22.4 kB) Copy SHA256 Checksum SHA256 Source Dec 9, 2016

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