mapping values

PaulS:

but i'm unable to verify it (because I don't have my hardware here)

You need a PC running the Arduino IDE, NOT an Arduino, to verify code.

Come back when you have done that!

code is verified :blush:
i just need to know if i made right conversions of the data types (or if you know any good simulator that will let me simulate the program please give me a link)