I'm a bit new to the map() feature.
Can I do this? -
var = map(var1, 300, 0, 0, 255);
Sorry if this is a stupid question.
I'm a bit new to the map() feature.
Can I do this? -
var = map(var1, 300, 0, 0, 255);
Sorry if this is a stupid question.
No... You have to fill in government form #3712 and submit to the Income Revenue Service before you can use the map() function like this
![]()
joke aside, of course you can. wether it works as you expect depends on what you expect ![]()
ā map(value, fromLow, fromHigh, toLow, toHigh)
I'll take a look at that form.
Right after I upvote your post.
![]()
what you get is an affine function, but rounded to lower closest integer

so if you zoom, you can see the steps
I am getting sick and tired of the government putting its fingers into everything.
Next we will have two fingers up our butt during a physical.
me too ![]()
the good news is that it was a Joke, OP can use map() freely ![]()
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.