i was wondering what will happen if the map function is given a value of fraction to be mapped.
for example i have a code like this
sensor_value = map(sensor_value, 80, 20, 10, 1);
here sensor value could be in fraction like 50.23
what will happen to the output of this function ?
and also what will happen if sensor_value does not come within 80 and 20
for example i have a code like this
sensor_value = map(sensor_value, 80, 20, 10, 1);
here sensor value could be in fraction like 50.23
what will happen to the output of this function ?
and also what will happen if sensor_value does not come within 80 and 20