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.1.zip
(10.5 kB
view details)
Built Distributions
File details
Details for the file bitalino-1.1.zip
.
File metadata
- Download URL: bitalino-1.1.zip
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e060bd332bb116521b1dcfafb81c7581f43876070a18fe89d6129292dc188660 |
|
MD5 | 5e74787c5157b6b43ef685689757999e |
|
BLAKE2b-256 | c6f4cb10fe40a5bef6327ab94ec5310936c944d53d926e86c6e7a5007752c35d |
File details
Details for the file bitalino-1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: bitalino-1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec69ec4cd608e0198b7b73e12f8a156f9b643cc2182ef78518acb9ecf675dcdc |
|
MD5 | d196da9bcca069997db858b140362886 |
|
BLAKE2b-256 | 0572e7bcb65986ce37d359834000d2fa7a99c76b5b28b643d6cd743ea75c5d73 |
File details
Details for the file bitalino-1.1-py2-none-any.whl
.
File metadata
- Download URL: bitalino-1.1-py2-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d478f092bc5fb3026af5b36271d2b143fd428f1843be6518d9dd4ff8591ed8 |
|
MD5 | 2fb308945e30969e5245ef24200d03c3 |
|
BLAKE2b-256 | 16594a885ff8d3994ee9263cb2c5977a633d93b30163604b08ef81eca731a0d8 |