Skip to content

Instantly share code, notes, and snippets.

@baobao
Created August 14, 2019 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/c5524a63b876d2bbb9598c9a12443aef to your computer and use it in GitHub Desktop.
Save baobao/c5524a63b876d2bbb9598c9a12443aef to your computer and use it in GitHub Desktop.
/**
* 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