first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
22
libraries/HX711_Arduino_Library/doc/faq.md
Normal file
22
libraries/HX711_Arduino_Library/doc/faq.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Frequently Asked Questions
|
||||
|
||||
## 1. no matching function for call to 'HX711::HX711(const int&, const int&)'
|
||||
|
||||
I'm getting the following error:
|
||||
|
||||
```exit status 1 no matching function for call to 'HX711::HX711(const int&, const int&)'```
|
||||
|
||||
The new interface is that the begin(...) method will obtain the pin parameters. So instead of using:
|
||||
```
|
||||
HX711 scale(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
|
||||
```
|
||||
Use:
|
||||
```
|
||||
HX711 scale;
|
||||
```
|
||||
And then in ```void setup() { ... }``` initialize the pins like this:
|
||||
```
|
||||
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
|
||||
```
|
||||
Please refer to this example for more details:
|
||||
https://github.com/bogde/HX711/blob/master/examples/HX711_basic_example/HX711_basic_example.ino#L7-L12
|
||||
Loading…
Add table
Add a link
Reference in a new issue