Reverse SCK/DOUT to reflect actual connection.
authorvolpol <volpol@packet-gain.de>
Fri, 31 Aug 2018 16:09:17 +0000 (18:09 +0200)
committervolpol <volpol@packet-gain.de>
Fri, 31 Aug 2018 16:09:17 +0000 (18:09 +0200)
Where is config.h when you need one!?

hx711.h

diff --git a/hx711.h b/hx711.h
index e702fb70801f4b9e1fba567450a26a5a1cb9fa37..5e53c1de20db893bdef87d72513b0327d5e5ae18 100644 (file)
--- a/hx711.h
+++ b/hx711.h
@@ -1,7 +1,7 @@
 #ifndef HX711_h
 #define HX711_h
 
-    #define PD_SCK_PIN          6
+    #define PD_SCK_PIN          5
 
     #define PD_SCK_SET_OUTPUT   setup_gpio (PD_SCK_PIN, OUTPUT, PUD_OFF)
     #define PD_SCK_SET_INPUT   setup_gpio (PD_SCK_PIN, INPUT, PUD_OFF)
@@ -9,7 +9,7 @@
     #define PD_SCK_SET_HIGH     output_gpio(PD_SCK_PIN, HIGH)
     #define PD_SCK_SET_LOW      output_gpio(PD_SCK_PIN, LOW)
 
-    #define DOUT_PIN            5
+    #define DOUT_PIN            6
     #define DOUT_READ           input_gpio(DOUT_PIN)
 
     #define DOUT_SET_INPUT      setup_gpio (DOUT_PIN, INPUT, PUD_OFF)