Python Libraries for Binho Multi-Protocol USB Host Adapters
Project description
Binho Host Adapter Python Libraries
Introduction
Cross-platform Python 3.x library for automated control of Binho Multi-Protocol USB Host Adapters. More information about the device can be found at https://www.binho.io
Dependencies
This library requires pySerial for cross-platform access of the serial port. This library will be installed automatically by pip, however for easy reference, this can be manually installed simply by running the following command:
pip install pyserial
Installation
This library can be installed easily with the following command:
pip install binho-host-adapter
Example Usage
from binhoHostAdapter import binhoHostAdapter
from binhoHostAdapter import binhoUtilities
print("Demo Script with Binho Host Adapter Python Libraries")
print
utilities = binhoUtilities.binhoUtilities()
devices = utilities.listAvailableDevices()
if len(devices) == 0:
print("No Devices Found!")
exit()
elif len(devices) == 1:
COMPORT = devices[0]
print("Found 1 attached adapter @ " + devices[0])
print
else:
COMPORT = devices[0]
print("Found more than 1 attached adapter, using first device found on " + COMPORT)
print
print("Opening " + COMPORT + "...")
print
# create the binhoHostAdapter object
binho = binhoHostAdapter.binhoHostAdapter(COMPORT)
print("Connecting to host adapter...")
print(binho.getDeviceID())
print
Documentation
The full set of documentation for this python library can be found at https://support.binho.io/python-libraries
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
Built Distribution
Hashes for binho_host_adapter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a1c7fca54e67792f126919ab3cae7a4acc6b5a85db22cc54917f2240848084d |
|
MD5 | 640988537efe775b7069c7ccb674c333 |
|
BLAKE2b-256 | 9aab7f762a0d0ac2ef3fd01d8435edaf12ff339cd0257d5f473b4faa6fc5af5e |