Hi, im trying to use my PWM pins in atmega8. According to the image below, atmega8 has 3 PWM pins (9, 10 and 11) So, I created simple test for checking this pwm pins, I connected LED with resistor and I pushed code with
analogWrite(9, 254); instruction and nothing happen. If i use
digitalWrite(9, HIGH) the LED is working. Also i measured voltage when i’m using
analogWrite(9, 254) and its about ~0.35V. If I use 255 value instead of 254 in analogWrite, LED is working. I searched google but I can’t find any usefull informations.