2.0.0 - Add map_unconstrained_range(); handle reversed range in constrain()
2.0.0 - Add map_unconstrained_range(); handle reversed range in constrain(), improve tests. Thanks @lesamouraipourpre!
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-simplemath
.
Read the docs for info on how to use it.