min(x, y)
引数 x,y 2つの数値のうち小さいほうの値を返します。
●Example from Arduino Web Site
[c]
sensVal = min(sensVal, 100); // assigns sensVal to the smaller of sensVal or 100
// ensuring that it never gets above 100.
[/c]
引数 x,y 2つの数値のうち小さいほうの値を返します。
●Example from Arduino Web Site
[c]
sensVal = min(sensVal, 100); // assigns sensVal to the smaller of sensVal or 100
// ensuring that it never gets above 100.
[/c]