Skip to content

Commit

Permalink
Add default values for OFFSET and SCALE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan committed Oct 2, 2016
1 parent 5253f96 commit 38f8ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HX711.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class HX711
byte PD_SCK; // Power Down and Serial Clock Input Pin
byte DOUT; // Serial Data Output Pin
byte GAIN; // amplification factor
long OFFSET; // used for tare weight
float SCALE; // used to return weight in grams, kg, ounces, whatever
long OFFSET = 0; // used for tare weight
float SCALE = 1; // used to return weight in grams, kg, ounces, whatever

public:
// define clock and data pin, channel, and gain factor
Expand Down

0 comments on commit 38f8ff0

Please sign in to comment.