From 38f8ff0bda29b2377a9a6d3fe3eb25690c05bbe2 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 2 Oct 2016 15:40:09 +0300 Subject: [PATCH] Add default values for OFFSET and SCALE. --- HX711.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HX711.h b/HX711.h index 6ec025b..23b2234 100644 --- a/HX711.h +++ b/HX711.h @@ -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