dangrie158 / opencushion

A c++ driver and a node binding for the HX711 Load Cell Amp
MIT License
14 stars 17 forks source link

HX711 not a constructur #9

Open mirko3000 opened 5 years ago

mirko3000 commented 5 years ago

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 commented 3 years ago

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

something like that should work