[Tutor] Map function

Phil phil_lor at bigpond.com
Sat Aug 10 08:45:09 CEST 2013


The Arduino has a map function named "map" which looks like this:

map(value, 0, 1023, 0, 100)

The function, in this case, takes an integer value between 0 and 1023 
and returns a number between 0 and 100. Is there a Python equivalent?

-- 
Regards,
Phil


More information about the Tutor mailing list