Can I use map() like this?

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

:wink:

joke aside, of course you can. wether it works as you expect depends on what you expect :slight_smile:

āžœ map(value, fromLow, fromHigh, toLow, toHigh)

2 Likes

I'll take a look at that form.

Right after I upvote your post.

:wink:

what you get is an affine function, but rounded to lower closest integer

image

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 :wink:

the good news is that it was a Joke, OP can use map() freely :slight_smile: