fixed analog read / analog write scaling

analog read returns between 0 and 1023, analog write returns between 0
and 255