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

HX711 not a constructur #9

Open
mirko3000 opened this issue Aug 31, 2019 · 1 comment
Open

HX711 not a constructur #9

mirko3000 opened this issue Aug 31, 2019 · 1 comment

Comments

@mirko3000
Copy link

Hi,

I am having issues getting the library to work. I could build it and included in my project, but on
var sensor = new HX711(4,6)
I get an compile error:
TypeError: HX711 is not a constructor.

Can you provide a short code snippet?
Best regards,
Mirko

@brendjuan
Copy link

var HX711 = require('hx711'); const sensor = new HX711(4,6);

something like that 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