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
Documentation
Usage Example
use your macAddress:
# This example will collect data for 5 sec. macAddress = "00:00:00:00:00:00" # macAddress = "/dev/tty.BITalino-XX-XX-DevB" # on Mac OS replace XX-XX by the 4 final digits of the MAC address 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 device.battery(batteryThreshold) # Read BITalino version print(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 Distribution
bitalino-1.2.1.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file bitalino-1.2.1.tar.gz
.
File metadata
- Download URL: bitalino-1.2.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.1 setuptools/5.7 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f6f04b8bff57a7a2e0f03ab3731fc1d268760bdca83cb9bae91f7d58b5e52a |
|
MD5 | 9a9e67e4644ea094fac6e836bbd92ec5 |
|
BLAKE2b-256 | a9368fab2bc4dea37303befe8c95f9498d1896c019d5a12ae6641c9677c61ffd |
File details
Details for the file bitalino-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: bitalino-1.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.1 setuptools/5.7 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57fae689e3b5c980762c713c99dbc23330c69f06086acf6ceb8a17fe9e23b8e2 |
|
MD5 | 9e3a856bdaebb15c8c40e2926135f054 |
|
BLAKE2b-256 | c9713a58b9fe5aec412cd39b0899a7691dc956eadbaef43292c359811b940262 |