ESP32 WiFi.h Constantly Blinking Onboard LED
Posted: Sat Jul 08, 2023 6:21 pm
I have a project that has been working for years. ESP32 connected to Adafruit that controls the raise/lower buttons for my projector screen. It works great, I love it. But last time I needed to make a minor code change, I updated everything and something has now decided that the onboard LED (which I was previously using for various status indicators) should flash like a crazy little bastard whenever it's connected to my wifi. It's super annoying trying to watch a movie with a little blue light show going off right beside it
I've tried downgrading everything (libraries, board managers, IDE software) to older versions, but none of it is doing it. I've tried going through the WiFi.h code to find what is using the onboard LED, but I'm not good enough with the code to find it. All I've been able to determine is that it doesn't happen until I give the WiFi.begin() command. If anyone knows a way to stop the WiFi.h library from overriding my pin 2 control, you will forever be my hero!
As a last resort, I might remove the onboard LED and wire it to a separate pin, but I'd REALLY like to avoid that if possible, since I'm certain this can be fixed in software.
I've tried downgrading everything (libraries, board managers, IDE software) to older versions, but none of it is doing it. I've tried going through the WiFi.h code to find what is using the onboard LED, but I'm not good enough with the code to find it. All I've been able to determine is that it doesn't happen until I give the WiFi.begin() command. If anyone knows a way to stop the WiFi.h library from overriding my pin 2 control, you will forever be my hero!
As a last resort, I might remove the onboard LED and wire it to a separate pin, but I'd REALLY like to avoid that if possible, since I'm certain this can be fixed in software.