in my sketch I have a subroutine that blinks the power led regarding the choosen program my device runs in.
It works fine with digitalWrite.
Today I bought this button with LED inside:
It works fine as well (btw. it is connected to Pin 10 then 240R to GND).
But because it was way too bright I changed my digitalWrite's to analogWrite and did want to set a value to make it less bright.
My Problem is as soon as I change the value to any other than 255 it completely goes off instead darker as expected.