i have installed the latest Version ESPEasy mega-20200305 on an ESP32.
Tried to use buildin LED (GPIO2) as WIFI Traffic indicator (like it is working on ESP8266 devices)
The LED stays always drak.
Hardware:
ESP32-WROOM-32 (ESP32S) (Hardware like nodemcu)
ESP32 NodeMCU IoT Development Board mit Espressif ESP-WROOM-32

ESP Easy version:
mega-20200305
ESP Easy settings/screenshots:


The notification LED is using the PWM feature, so maybe that's the problem with ESP32?
I've tested with mqtt command PWM,2,0,2000 or PWM,2,1000,2000
The builin LED changes the brightness. So PWM is working fine.
I fear there is somthing wrong pin assignment to WIFI or the WIFI module don't deliver data for dimming.
I've tested also external LED with mqtt command PWM,2,23,2000 or PWM,23,1000,2000
The external LED changes the brightness. So PWM is working fine.
But GPIO23 as WIFI Traffic indicator, no chance.
In the statusLED() function (see Misc.ino) the Status LED's analogWrite() is only available to the ESP8266. See the code here: https://github.com/letscontrolit/ESPEasy/blob/mega/src/Misc.ino#L757
Maybe something like this (untested) is the solution?
#if defined(ESP8266)
analogWrite(Settings.Pin_status_led, pwm);
#endif // if defined(ESP8266)
#if defined(ESP32)
analogWriteESP32(Settings.Pin_status_led, pwm);
#endif // if defined(ESP32)
@thomastech That looks like a valid fix indeed.
@thomastech
@TD-er
i can confirm the fix work's. Now my led is blinking like in esp8266 devices
Fixed it along with another PR I am about to merge.
Most helpful comment
@thomastech
@TD-er
i can confirm the fix work's. Now my led is blinking like in esp8266 devices