News

Arduino's map() function accepts long and returns long, however it gives wrong results even if valid but high value parameters are used. ... use "long long", "float" introduces rounding discrepancies; ...
The map2colour library is used to map a float value to a colour in the RGB spectrum. The float value can be the result of a calculation or read from a sensor, e.g. temperature, humidity, light, ...