SMC PSE530-M5

You still have not posted any code so it is hard to say why map() is a problem if you will not explain it.

Is this an assignment that you are trying to get the forum to do for you?