Skip to content

Commit

Permalink
added a delay after switching relay (Aircoookie#4474)
Browse files Browse the repository at this point in the history
- helps to stabilize power on the LEDs before sending data
  • Loading branch information
DedeHai authored Jan 9, 2025
1 parent 709aeff commit bb0c0af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wled00/button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ void handleIO()
if (rlyPin>=0) {
pinMode(rlyPin, rlyOpenDrain ? OUTPUT_OPEN_DRAIN : OUTPUT);
digitalWrite(rlyPin, rlyMde);
delay(50); // wait for relay to switch and power to stabilize
}
offMode = false;
}
Expand Down

0 comments on commit bb0c0af

Please sign in to comment.