changed AnalogPin constructor argument from bits to resolution