WLED
WLED copied to clipboard
Add define to set data pins to HIGH when relay is off
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
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!
What happens if first bus is not RMT driven? (AKA APA102 LEDs which use SPI)
Hi,
Since it only disconnects GND and not +5V
Is there a specific reason why you disconnect GND instead if disconnecting 5V?
Yes, I used a MOSFET to disconnect the LED strip instead of a relay and don't need to worry about 3.3V/5V