if found this for map function in arudino
long map(long x, long in_min, long in_max, long out_min, long out_max)
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
anyone could change it into espruino?
© Espruino, powered by microcosm.
Report a problem