GosundSP111 relay0LED FIX
This commit is contained in:
parent
556f277016
commit
9b7b08e9cb
@ -12,7 +12,7 @@ Button button0(13, true, true, [](const ButtonEvent event) { buttonCallback(rela
|
||||
Relay relay0(0, "fallback/relay0", "RELAY #0", 15, false, true);
|
||||
|
||||
#ifdef GosundSP111
|
||||
Output relay0Led("relay0Led", 3, true, false);
|
||||
Output relay0Led("relay0Led", 2, true, false);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
7
src/io.h
7
src/io.h
@ -36,6 +36,9 @@ inline void ioSetup() {
|
||||
status.setup();
|
||||
button0.setup();
|
||||
relay0.setup();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.setup();
|
||||
#endif
|
||||
#ifdef Sonoff4ChPro
|
||||
button1.setup();
|
||||
button2.setup();
|
||||
@ -50,6 +53,10 @@ inline void ioLoop() {
|
||||
status.loop();
|
||||
button0.loop();
|
||||
relay0.loop();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.set(relay0.get());
|
||||
relay0Led.loop();
|
||||
#endif
|
||||
#ifdef Sonoff4ChPro
|
||||
button1.loop();
|
||||
button2.loop();
|
||||
|
||||
@ -19,7 +19,4 @@ void loop() {
|
||||
wifiLoop();
|
||||
ioLoop();
|
||||
ArduinoOTA.handle();
|
||||
#ifdef GosundSP111
|
||||
relay0Led.set(relay0.get());
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user