I'm working on a project with a 8051 controller, and found the Arduino libraries map()-function map() - Arduino Reference, which is great, but I also need the constrain()-function if I am to be sure my values are going to be correct. Can anyone help me with this matter? I can not find the source codes for the function in my Arduino folder :\
Looked at constrain() - Arduino Reference but I need the function prototype.
Have never used an Arduino before, but am looking forward to getting it in the mail soon
Thank you so much in advance!