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 }