Go Down

Topic: RGB Thermometer needs more drastic change (Read 5969 times) previous topic - next topic

PaulRB


So, it does not constrain, but only provides guidelines for scaling the output range to the input range?


Yes, you are correct. But combined with your if/else statements, you can constrain values. You know that "out" will always be between "outLow" and "outHigh" because each of your if statements are ensuring that "in" is between "inLow" and "inHigh" for each range.

Paul

Go Up