From c4d30371cfbe0979282ccd238151874e818978ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Wed, 3 Sep 2025 08:49:55 +0200 Subject: [PATCH] gosund relay0LED --- src/io.cpp | 4 +++- src/io.h | 2 ++ src/main.cpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/io.cpp b/src/io.cpp index e991708..25254d2 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -11,7 +11,9 @@ Button button0(13, true, true, [](const ButtonEvent event) { buttonCallback(rela Relay relay0(0, "fallback/relay0", "RELAY #0", 15, false, true); -Output relay0Led("relay0Led", 2, STATUS_INVERT, false); +#ifdef GosundSP111 +Output relay0Led("relay0Led", 3, true, false); +#endif #endif diff --git a/src/io.h b/src/io.h index aa694e0..f2fcdf9 100644 --- a/src/io.h +++ b/src/io.h @@ -12,7 +12,9 @@ extern Button button0; extern Relay relay0; +#ifdef GosundSP111 extern Output relay0Led; +#endif #ifdef Sonoff4ChPro diff --git a/src/main.cpp b/src/main.cpp index aa4ee81..53e0169 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,5 +19,7 @@ void loop() { wifiLoop(); ioLoop(); ArduinoOTA.handle(); +#ifdef GosundSP111 relay0Led.set(relay0.get()); +#endif }