Page 2 of 2

Re: How to read Map() function in micropython?

Posted: Wed Jun 16, 2021 3:31 am
by scruss
Another slightly different approach is taken by CircuitPython's map_range() function

Re: How to read Map() function in micropython?

Posted: Sat Jul 17, 2021 2:05 pm
by danhalbert
scruss wrote:
Wed Jun 16, 2021 3:31 am
Another slightly different approach is taken by CircuitPython's map_range() function
That's from the SimpleIO library, which is a miscellaneous collection of things. We recently made a new library, SimpleMath, with a few different range and constrain functions: https://github.com/adafruit/Adafruit_Ci ... plemath.py