MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leScaleInteger Function
MPLAB® Harmony Graphics Suite
leScaleInteger Function
C
LIB_EXPORT uint32_t leScaleInteger(
    uint32_t num, 
    uint32_t oldMax, 
    uint32_t newMax
);
Parameters
Parameters 
Description 
num 
the number to consider 
oldMax 
the old range maximum 
newMax 
the new range maximum 
Returns

uint32_t - the number as defined in the new number range

MPLAB® Harmony Graphics Suite