Skip to content

fredhatt/estim2bapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributions welcome License

About estim2bapi

This is an (unofficial) Python API for the E-Stim 2B. Note that this is alpha software, and thus comes with absolutely no warranty whatsoever. Use at your own risk.

Installation

For users

You can install using the pip command:

pip install git+https://github.com/fredhatt/estim2bapi.git

If you don't have pip in your Python distribution you can install it using,

easy_install pip

or (on Debian-based systems like Raspbian):

apt-get install python-pip

After installing, try the examples to check everything is working properly.

For developers

Clone this repository and append its path to your PYTHONPATH variable. In Linux you would do this:

git clone https://github.com/fredhatt/estim2bapi
echo "export PYTHONPATH=$PYTHONPATH:$(pwd)/estim2bapi" >> ~/.bashrc
source ~/.bashrc

Usage

# import the module and connect to 2B connected to ttyUSB0 (Linux)...
import estim2b
e2b = estim2b.Estim('/dev/ttyUSB0')
# get status from 2B...
e2b.status()

For a simple usage example see example.py.

About

Unofficial Python API for the E-stim 2B.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages