Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By ptribbey
#60346 Like the arduino map funtion:

long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min + 1) / (in_max - in_min + 1) + out_min;
}

Thank You
Paul