You are reading a single comment by @bigplik and its replies. Click here to read the full conversation.
  • 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?

About

Avatar for bigplik @bigplik started