Add analogWriteResolution function

Function to change the resolution of analogWrite function using analogWriteResolution