changed analog read / analog write scaling

changed from / by 4 to using the map function