User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
Example code:
int ledPin=8; //set IO pin of LED in control
void setup()
{
pinMode(ledPin,OUTPUT);//set digital pin IO is OUTPUT
}
void loop()
{
digitalWrite(ledPin,HIGH); //set PIN8 is HIGH , about 5V
delay(1000); //delay 1000ms, 1000ms = 1s
digitalWrite(ledPin,LOW); //set PIN8 is LOW, 0V
delay(1000); //delay 1000ms, 1000ms = 1s
}
setup()
The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start
using libraries, etc. The setup function will only run once, after each powerup or reset of the