diff --git a/src/main.cpp b/src/main.cpp index 1a0a618..2e6e286 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,7 +7,8 @@ // DFPLAYER_RX_PIN = 15 // DFPLAYER_TX_PIN = 16 // BUSY_PIN = 17 (LOW = busy) - +//esp32 sda +//esp32 scl #include #include @@ -27,13 +28,13 @@ #include -#define STATUS_LED_PIN 2 +#define STATUS_LED_PIN 26 #define DFPLAYER_RX_PIN 16 //3 df #define DFPLAYER_TX_PIN 17 //2 df #define RELAY_PIN 19 #define BUSY_PIN 23 -#define RESET_PIN 15 -#define BUZZER_PIN 4 +#define RESET_PIN 18 +#define BUZZER_PIN 5 #define RESET_HOLD_MS 15000UL #define MAX_SCHEDULES 20 @@ -676,6 +677,9 @@ void loop(){ buzzerState = false; digitalWrite(BUZZER_PIN, LOW); } + } else { + buzzerState = false; + digitalWrite(BUZZER_PIN, LOW); } delay(10); // tiny yield