There is a Bug in Version 1.8.10 of the Arduino IDE using analogWrite() for PWM on Arduino Mega 2560. If i use analogWrite() with any value for the pwm-Pins once in the loop()-Method everything works ...
I wanted to do something really simple. Having several LEDs controlled by PWM. Everything was working very weird with analogWrite so I tried several boards and reduced the setup to the minimal. It is ...