Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* DCモーターを3秒ごとに再生と停止を繰り返すサンプル
*/
void setup()
{
pinMode(11, OUTPUT);
}
void loop()
{
digitalWrite(11,HIGH);
delay(3000);
digitalWrite(11,LOW);
delay(3000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment