1 of 1 people found this helpful
Here is a link to more information on the min() function:
It is one of the native functions, so there is nothing to import. Unfortunately, not all of the native functions are supported at this time. Luckily, this function should be easy to implement on your own.
int min(int num1, int num2)
if(num1 > num2)
For more information on which functions are not supported, please read the release notes.
Thanks for the quick response. I was actually afraid you were going to say that. Going the reference document now. Have a project on the Mega for a IMU and GPS that I wanted to port over but does not look like I will be able to until the libraries are a little more mature. Right now I am using Jeff Rowberg I2CDev lib drivers to the sensors and the min function so far is the only error it has thrown.