ericpulvino / pybusylight Goto Github PK
View Code? Open in Web Editor NEWA python library to control Busylight devices based on pyusb.
License: MIT License
A python library to control Busylight devices based on pyusb.
License: MIT License
I have a different vendor and product number. I have updated those. but it seems like the device is connecting but it isn't reading my messages. have any ideas? I think it may be in the buffer. is there a reason for the last concatenation in the buffer?
Installed via PIP
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pybusylight
>>> bl=pybusylight.busylight()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'pybusylight' has no attribute 'busylight'
Hi eric
Thank you for your efforts so far. But unfortunately i'm unable to connect to my BusyLight Alpha.
It's always the same error message: ValueError: Device not found
I tried it on the following systems:
8045 segmentation fault (core dumped)
)libusb-1.0-0 is installed... What are futher debugging possibilities?
Thanks in advance!
When running the test code from the readme, it throws this error:
NoBackendError Traceback (most recent call last)
<ipython-input-6-695313e87b17> in <module>()
----> 1 test = pybusylight.busylight()
~//pyBusylight/pybusylight.py in __init__(self, debug)
18 self.ep = None
19 self.debug = debug
---> 20 self.__connect_busylight__()
21 self.red = 255
22 self.green = 255
~//pyBusylight/pybusylight.py in __connect_busylight__(self)
27
28 def __connect_busylight__(self):
---> 29 dev = usb.core.find(idVendor=0x04d8, idProduct=0xf848)
30
31 if dev is None: raise ValueError('Device not found')
/usr/local/lib/python3.7/site-packages/usb/core.py in find(find_all, backend, custom_match, **args)
1261 break
1262 else:
-> 1263 raise NoBackendError('No backend available')
1264
1265 if find_all:
NoBackendError: No backend available
This is the line that's failing:
Line 29 in 31f3718
[EDIT] The above line conflicts with my system's reported product/vendor IDs:
Product ID: 0x3bcd
Vendor ID: 0x27bb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.