Last updated:
0 purchases
inkawuvppelletdispenser 0.0.1
Pellet Dispenser Python Driver
This is a python package to use the pellet dispenser with python.
Installing
Install this package with the following shell command
pip install inkawuvp-pellet-dispenser
inkawuvp-pellet-dispenser is based on hid and
therefore require the hidapi library to be
installed separately.
Installing hidapi
Linux
Depending on your distribution you will need to install a hidapi package.
Ubuntu / Debian based
sudo apt install libhidapi-hidraw0
macOS
The easiest is to use Homebrew:
brew install hidapi
Sample usage code
from inkawuvp_pellet_dispenser import Device, DispenserError
dev = Device()
try:
dispensed = dev.dispense(1)
print(f'Dispensed {dispensed} pellets')
except DispenserError as e:
print(e)
print(f'still dispensed {e.dispensed}')
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.