-
Notifications
You must be signed in to change notification settings - Fork 535
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
Library HX711 #10
Comments
do you have: #include "HX711.h" at the top of your sketch file? are you using use HX711 scale(A1, A0); does the included example (HX711Serial) work? |
Hi do you have: #include "HX711.h" at the top of your sketch file? are you using Hx711 scale(A1, A0); or HX711 scale(A1, A0); ? use HX711 scale(A1, A0); does the included example (HX711Serial) work? — |
there is no method getGram. see here for the methods you can call: see the example for a proper usage. |
I ran into this issue too. The documentation on ./README.md says that in the non-blocking mode we should:
Instead, it should say:
for consistency with the definition at the start of the example |
Dear @r-a-i, may I humbly ask for a pointer where you found this inconsistency? I just skimmed [1] and can't find any typo in there. With kind regards, |
Reading things more concentrated always makes sense. Sorry again for overlooking your reference to You are absolutely right. When fixing this, we might also think about making the example in README.md consistent with the example files referenced above, right? Would you personally prefer ... just wanted to mention that I acknowledge we should bring more consistency into the code examples and that I am personally open for any better name if desired. |
Dear @amotl, I just submitted a pull request for this change for your consideration. Personally, I think the variable name "loadcell" is more generic as the "Hx711" is a loadcell amplifier. Some people may use loadcells to build "scales", but not always. In my case, I'm using a loadcell to measure a force directly and not weight. Thank you for your consideration and all your contributions to this library. |
Hi Good night i have problem with the code that you use when i try to upload the code, the program send me this message sketch_sep07a:6: error: 'Hx711' does not name a type
sketch_sep07a.ino: In function 'void setup()':
sketch_sep07a:11: error: 'scale' was not declared in this scope
sketch_sep07a.ino: In function 'void loop()':
sketch_sep07a:16: error: 'scale' was not declared in this scope
And i already uploaded the library that you put in web page
I hope can you help me with this issue.
Thanks.
Regards
The text was updated successfully, but these errors were encountered: