analogWrite on pin 8

Hi all,

I was doing a experimental project with light sensor and Uno. The LED with glow brighter when the environment is dark, and the other way around. But, for some strange reason, the light will just blinking as if it doesn't allow me to set value in between, although I have use analogWrite. and, it was connected to pin 8 (digital). However, it works fine when I change it to other pins (tested 9 and 3).

My question is: is there anything special about pin 8 that only allow digital write or something? or did I fried my pin 8?

Thank you very much for answering my question.

Maybe we can help you better if you post the code you are using...
:wink:

not all pins are PWM pins - usable with analogWrite() . On the arduino board you can see a ~ near the pinnr.

pwm pins = { 3, 5, 6, 9, 10, 11 }