WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Add define to set data pins to HIGH when relay is off

Open c3n opened this issue 3 years ago • 2 comments

I'm using an IRF3708 MOSFET instead of a relay to disconnect the LEDs when WLED is off. Since it only disconnects GND and not +5V a LOW on the data pin creates a small leakage current which I didn't want. On ESP8266 the LED gets turned off so if the pin is shared with data there is no problem. This PR adds a compile-time define (that one could set in the .ini file) that switches all configured digital data pins on ESP32 to HIGH using rmt_set_idle_level whlie the relay is off. Tested with 2 SK6812 Strips connected to an esp32

c3n avatar Jan 09 '22 15:01 c3n

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!

stale[bot] avatar Sep 21 '22 03:09 stale[bot]

What happens if first bus is not RMT driven? (AKA APA102 LEDs which use SPI)

blazoncek avatar Sep 21 '22 04:09 blazoncek

Hi,

Since it only disconnects GND and not +5V

Is there a specific reason why you disconnect GND instead if disconnecting 5V?

softhack007 avatar Sep 25 '22 09:09 softhack007

Yes, I used a MOSFET to disconnect the LED strip instead of a relay and don't need to worry about 3.3V/5V

c3n avatar Sep 25 '22 12:09 c3n