gosund relay0LED

This commit is contained in:
Patrick Haßel 2025-09-03 08:49:55 +02:00
parent 7aa39483de
commit c4d30371cf
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -12,7 +12,9 @@ extern Button button0;
extern Relay relay0;
#ifdef GosundSP111
extern Output relay0Led;
#endif
#ifdef Sonoff4ChPro

View File

@ -19,5 +19,7 @@ void loop() {
wifiLoop();
ioLoop();
ArduinoOTA.handle();
#ifdef GosundSP111
relay0Led.set(relay0.get());
#endif
}