John Park’s CircuitPython Parsec: Map Range @adafruit @johnedgarpark #adafruit #circuitpython
Use the map_range function of the Simple math library to re-map numbers to a new range. Potentiometer giving you 0 – 65520 but you really need 64 – 127? Map_range has got you covered!
Learn more about CircuitPython
via Adafruit Industries – Makers, hackers, artists, designers and engineers! https://ift.tt/1E8EcEY
June 11, 2021 at 02:53PM