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

Dependents:   jrh52_a3 TBI_FIAT_FEEDFORWARD Ignition accuBlast_display ... more

Usage

#include "mbed.h" 
#include "reScale.h"

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

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

}

History

Changed description. Usage example is now on library homepahe default tip

2014-03-03, by c0ax [Mon, 03 Mar 2014 19:57:45 +0000] rev 1

Changed description. Usage example is now on library homepahe


Initial release

2014-03-03, by c0ax [Mon, 03 Mar 2014 19:43:51 +0000] rev 0

Initial release