Skip to main content

revolution-python-api

Project description

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

Dependencies

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()

Project details


Download files

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

Source Distributions

bitalino-1.0.zip (22.4 kB view details)

Uploaded Source

bitalino-1.0.tar.gz (7.1 kB view details)

Uploaded Source

bitalino-1.0-py2-none-any.whl (8.8 kB view details)

Uploaded Python 2

File details

Details for the file bitalino-1.0.zip.

File metadata

  • Download URL: bitalino-1.0.zip
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bitalino-1.0.zip
Algorithm Hash digest
SHA256 770c06844db57f4a7386615efe74eb530aa272e7475b2e0e4acc94298a8aaf6d
MD5 89f95101c1552a86f1991c57893c462b
BLAKE2b-256 b0803fa43d1222715bccfff98aaf16e53c2177b2a97a5587dbbea75c250cf2dc

See more details on using hashes here.

File details

Details for the file bitalino-1.0.tar.gz.

File metadata

  • Download URL: bitalino-1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bitalino-1.0.tar.gz
Algorithm Hash digest
SHA256 2d0756cf1076d944f6264d84786e346e6f18e92af002a1a27070613a7c03a146
MD5 72db5d179a25ec43265cf57222c87ec4
BLAKE2b-256 c7d7cc23898afb10a57cb9e891d99f559dedb7a3c8ed2895e47ac595fbce1053

See more details on using hashes here.

File details

Details for the file bitalino-1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for bitalino-1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 2933d4ecdb9841d6e467a79a64d950f5151082d99668c1426ce2c094f57d5477
MD5 57307cc2d27d7a2393bf1589f7be2487
BLAKE2b-256 baec02331a9a2e0c1ab7b69149e37c5cd8a53e27b3212eeae897d25655564724

See more details on using hashes here.

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