From 29458f94f2b77061a3d6c27e2996f05d0a15ee1f Mon Sep 17 00:00:00 2001 From: Linnnus Date: Fri, 19 Apr 2024 11:22:58 +0200 Subject: Misc. cleaning --- det_hele/det_hele.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/det_hele/det_hele.ino b/det_hele/det_hele.ino index c4f5939..d1e7f89 100644 --- a/det_hele/det_hele.ino +++ b/det_hele/det_hele.ino @@ -16,7 +16,6 @@ const uint8_t WEIGHT_DATA_PIN = 7; // Reads data from HX711 (DT) const uint8_t WEIGHT_CLOCK_PIN = 6; // Drives HX711 output. (SCK) HX711 scale; int WEIGHT_SAMPLE_AMOUNT = 5; // amount of samples of each observation. -int AWARE_TIME = 2000; //amount of miliseconds in the aware state. // Pins used to interact with rotary dial circuit. const uint8_t DIAL_DATA_PIN = 5; // Reads data from PISO (4021). @@ -33,6 +32,7 @@ enum { STATE_RINGING, } state; +const unsigned int AWARE_TIME = 2000; //amount of miliseconds in the aware state. unsigned long awareStartTime; const double MAX_DEVIATION = 200; @@ -133,7 +133,6 @@ uint8_t dialRead() { data = 0; } - //uint8_t data = shiftIn(PISO_DATA_PIN, PISO_CLOCK_PIN, MSBFIRST); Serial.print("Number: "); Serial.print(data, DEC); Serial.print(", "); -- cgit v1.2.3