title: Arduino Attiny85: analogWrite resolution
body: <p>This question is a follow-up of this hardware question:
  <a href="https://electronics.stackexchange.com/questions/266536/digital-optical-volume-control-with-led-and-photoresistor-light-to-seperate-cir">https://electronics.stackexchange.com/questions/266536/digital-optical-volume-control-with-led-and-photoresistor-light-to-seperate-cir</a>
  but this time it is about software, <code>analogWrite</code>.</p>
  
  <p>I use an Attiny85 to control a self-made vactrol (A vactrol is a LED surrounded by Light Dependent Resistor in short LDR) to control analog audio volume. When the LED is at full brightness, the volume is at maximum level and when it is off it is at minimum level. To control the brightness of the LED, I use <code>analogWrite( PB1, 0..255 );</code>.</p>
  
  <p>This is working pretty well, however, the difference between ON and OFF is a bit harsh. So when you do <code>analogWrite( PB1, 1 );</code>, the LED starts to glow at a certain level you didn't expect because it is only 1/255 of the total possible setting.</p>
  
  <p>Is there a way to change the resolution, the sense of the <code>analogWrite</code> function?</p>