API for the Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight bluetooth DAQ box which can measure anything from temperature to ECG.
Required packages under Linux
For Ubuntu Linux install libbluetooth-dev:
sudo apt-get install libbluetooth-dev
For other Linux flavours install them from souce:
Quick start guide
Here are the basic steps how to use the API:
# load the module import pyattyscomm # Gets the AttysScan class which scans for Attys via bluetooth s = pyattyscomm.AttysScan() # Scan for Attys s.scan() # get the 1st Attys c = s.getAttysComm(0) # if an attys has been found c points to it. Otherwise it's None. # Start data acquisition in the background c.start() # Now we just read data at our convenience in a loop or timer or thread # if data is available you can read it from the ringBuffer while (not c.hasSampleAvilabale()): # do something else or nothing # getting a sample (array of all Attys channels) sample = c.getSampleFromBuffer() # do something with the sample print(sample) # rinse and repeat!
API documentation
Query it via the python help system:
import pyattyscomm help(pyattyscomm.AttysScan) help(pyattyscomm.AttysComm)
The Python classes have been generated with SWIG. The header files AttysComm.h and AttysScan.h provide detailed info about the classes:
Demos
On github are two python examples which print the ADC data to the screen and plots it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyattyscomm-2.0.9.0.tar.gz
(36.3 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.9.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b5ce002847f4586be057159de43ee6ffa814be4f4a835955bc8e923e3e25d3 |
|
MD5 | 6033f33a41130f72910d79f6f7b51165 |
|
BLAKE2b-256 | a2340f6627a3f779a33e63d9f4a40201e80e244b6c77ac321b1d51ed59c5ae52 |
Close
Hashes for pyattyscomm-2.0.9.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b9f54f142ce0ab863b6cd41d62b950607472d1e4156c075a5af41d9c23c858a |
|
MD5 | c41a54ce18c8c2bc9b568f8716646ac5 |
|
BLAKE2b-256 | 901dc3075138cb1af777c1be4d8e219e839726b2343513586538838f1c8db264 |