gosund relay0LED
This commit is contained in:
parent
7aa39483de
commit
c4d30371cf
@ -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
|
||||
|
||||
|
||||
2
src/io.h
2
src/io.h
@ -12,7 +12,9 @@ extern Button button0;
|
||||
|
||||
extern Relay relay0;
|
||||
|
||||
#ifdef GosundSP111
|
||||
extern Output relay0Led;
|
||||
#endif
|
||||
|
||||
#ifdef Sonoff4ChPro
|
||||
|
||||
|
||||
@ -19,5 +19,7 @@ void loop() {
|
||||
wifiLoop();
|
||||
ioLoop();
|
||||
ArduinoOTA.handle();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.set(relay0.get());
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user