Like Arduinos "map" function reScale converts values from different sizes.

Dependents:   jrh52_a3 TBI_FIAT_FEEDFORWARD Ignition accuBlast_display ... more

You are viewing an older revision! See the latest version

Homepage

Usage:

  1. include "mbed.h"
  2. include "reScale.h"

reScale _scale(0,100,0,10);

int main() { uint8_t value=_scale.from(50); value is now set to 5

}


All wikipages