Wifky!
Arduino 基礎からのマイコンモーター制御:マブチモーターを制御する
http://monoist.atmarkit.co.jp/mn/articles/1601/28/news005_2.html
http://monoist.atmarkit.co.jp/mn/articles/1604/11/news014_5.html
https://ogapsan.com/archives/195
スケッチ例
void setup() {
// initialize digital pin 2 as an output.
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}