User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
Analog I/O
int analogRead(pin) pin 0~5.
analogWrite(pin, value) pin 3, 5, 6, 9, 10, 11, value is 0 to 255
Time
delay(ms)Pauses the program for the amount of time (in miliseconds) specified as parameter.
(There are 1000 milliseconds in a second.)(unit ms).
delayMicroseconds(us)
Math
min(x, y) minimum value
max(x, y) maximum value
abs(x) absolute value
constrain(x, a, b) Constraint function, lower limit a upper limit b, x must be between a & b to be
returned
map(value, fromLow, fromHigh, toLow, toHigh)
pow(base, exponent) extraction of square root
sq(x) square
sqrt(x) Square root