Skip to content
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

'h1' is not defined #13

Open
Real4LA opened this issue Jun 27, 2022 · 1 comment
Open

'h1' is not defined #13

Real4LA opened this issue Jun 27, 2022 · 1 comment

Comments

@Real4LA
Copy link

Real4LA commented Jun 27, 2022

i have latest firmware 0.5.3 A1 am working on a Jetson nano i got the library installed and i'm just running the basic code:

from huskylib import HuskyLensLibrary
h1 = HuskyLensLibrary("SERIAL", "/dev/ttyUSB0")
print(h1.knock())

and still get the error am working with usb

@sirtet
Copy link

sirtet commented Jul 10, 2022

Is the code you show above a copy-paste of what you did run?

I suspect you did run a copy-paste of the Quickstart code from readme.md.
That has a typo in it, it uses hl (for Husky Lens) in the definition, and then h1 (digit "one" instead of char L).

Then i guess, in the issue here, you typed a "corrected" version (h1 works too, but it was meant to be hl).
So, the code above should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants