-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example Code #1
Comments
Hope this is not too late. Basically you want to make a relay control object using the pyhid_usb_relay.find(). Once you set that variable then you can start toggeling it or getting state information from it. I made two functions ON/OFF. With the current library you can only toggle which is not good enough for me. I want to make sure it is on or off before flipping the switch. |
Awesome! you should put this under an |
I can make a pull request :P This is not my repo |
Oh, you can make a fork lol! just fork the repo and make a new PR! |
Done |
os version, When running example code above, I get error |
I don't have a Windows machine to test, but this is because of pyusb, not pyhid-usb-relay. If you can figure out if we are missing some dependency there, we can add it to the poetry file to make it work |
I lost my comment. libusb-win32-devel-filter-1.2.6.0.exe located here https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/, following instructions from https://stackoverflow.com/questions/13773132/pyusb-on-windows-no-backend-available made the error go away. Now to figure out how to do something useful. I can't make the relay do anything with the example code yet. Thanks. |
I recently update the example code in the repository because the original example was confusing, so make sure you are looking at that one |
Could i get some help putting some example code together? Ill add it to a PR maybe under
/examples
?The text was updated successfully, but these errors were encountered: