How to read Map() function in micropython?

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

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

Post by scruss » Wed Jun 16, 2021 3:31 am

Another slightly different approach is taken by CircuitPython's map_range() function

danhalbert
Posts: 18
Joined: Mon Jan 16, 2017 3:58 am

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

Post by danhalbert » Sat Jul 17, 2021 2:05 pm

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

Post Reply