this gives the full resolution when using the ADC backend. It also adds scaling for the Arduino backend
Fixed up example sketch so it compiles and works again!
this library abstracts out the way of getting an analog value. If the ADC library is being used then it calls the ADC Ch() method, otherwise it calls analogRead()